Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught SyntaxError #4

Open
icepunk opened this issue Dec 12, 2021 · 2 comments
Open

Uncaught SyntaxError #4

icepunk opened this issue Dec 12, 2021 · 2 comments

Comments

@icepunk
Copy link

icepunk commented Dec 12, 2021

when i download the files i see this error! and page didn't load
Uncaught SyntaxError: Cannot use import statement outside a module

@akella
Copy link
Owner

akella commented Dec 12, 2021

you need to run it with parcel, read instructions in readme

@tbtiberiu
Copy link
Contributor

You also have to install the dependencies with npm install before using parcel.
If you are using parcel and this error occurs: @parcel/transformer-js: Browser scripts cannot have imports or exports., you can fix it by modifying line 113 in index.html like this:

- <script src="js/app.js"></script>
+ <script src="js/app.js" type="module"></script>

I'd like to create a pr including this change.

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

No branches or pull requests

3 participants