FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

docs: beginner's guide: mention not to run tutorial code directly by Hi-Angel · Pull Request #825 · purescript-halogen/purescript-halogen · GitHub

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

Open
Hi-Angel wants to merge 1 commit into
purescript-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 into
purescript-halogen:masterfrom
Hi-Angel:improve-beginners-guide

Conversation

Hi-Angel commented Sep 13, 2024
edited
Loading

Copy link
Copy Markdown

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 force-pushed the improve-beginners-guide branch from bfecf60 to 20324c9 Compare September 13, 2024 09:44

Copy link
Copy Markdown
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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL