Skip to content

docs: beginner's guide: mention not to run tutorial code directly#825

Open
Hi-Angel wants to merge 1 commit intopurescript-halogen:masterfrom
Hi-Angel:improve-beginners-guide
Open

docs: beginner's guide: mention not to run tutorial code directly#825
Hi-Angel wants to merge 1 commit intopurescript-halogen:masterfrom
Hi-Angel:improve-beginners-guide

Conversation

@Hi-Angel
Copy link

@Hi-Angel Hi-Angel commented Sep 13, 2024

When just starting out, I bet one of the most frequent mistakes is to copy-paste the "Hello World" code into the editor and execute a spago run or the like. This will result in the ReferenceError: window is not defined exception though because the tutorial code doesn't create a window, and requires more steps for that to work.

So let's mention that explicitly.

Fixes: #758

When just starting out, I bet one of the most frequent mistakes is to
copy-paste the "Hello World" code into the editor and execute a `spago
run` or the like. This will result in the `ReferenceError: window is
not defined` exception though because the tutorial code doesn't create
a window, and requires more steps for that to work.

So let's mention that explicitly.

Fixes: purescript-halogen#758
@Hi-Angel Hi-Angel force-pushed the improve-beginners-guide branch from bfecf60 to 20324c9 Compare September 13, 2024 09:44
@Hi-Angel
Copy link
Author

…that said, I'm wondering if there's a documentation section that describes how to create such HTML file, etc, that I could link from the new paragraph to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ReferenceError: window is not defined

1 participant