Skip to content

Unexpected error: Node is not defined #1857

Answered by Fil
Martien asked this question in Q&A
Discussion options

You must be logged in to vote

It's definitely not trivial.

There is code that runs “server-side”, and is used to produce files (HTML5 in the general sense of HTML, CSS, JavaScript, and supporting data files).

Those files, in turn, include code that runs in the browser.

The code that runs server-side does not have a document, and anything it outputs will be “serialized to disk” during the build process — in other words represented as files. This is typically using nodejs, but nodejs can spawn other programmes (data loaders, page loaders) so you can write this stuff in pretty much any language you want. You can also write some code in typescript, and it will be transpiled to JavaScript so that it can run in the browser.

T…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@Fil
Comment options

Fil Dec 1, 2024
Collaborator

@Martien
Comment options

@Fil
Comment options

Fil Dec 2, 2024
Collaborator

Answer selected by Fil
@Martien
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1854 on December 01, 2024 20:48.