-
Notifications
You must be signed in to change notification settings - Fork 216
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
Compiling for nodes aborts with "SyntaxError: Cannot use import statement outside a module" #832
Comments
I got it to work using the instructions in the readme.txt for the demo. After compiling I ran it with the following node command (note that the command in the readme isn't quite accurate): node nodejs_demo.bundle.js 8080 But I run into the same issue as you using the |
Thank you so much @JennaSys! The |
I'm not quite familiar enough with JS and Node off the top of my head to figure out how to fix what is shown in the docs for the demo, but I'm glad the other method works for you. This issue should be left open since both the demo readme and the docs need to be fixed. |
I'm trying to use the sample
nodejs_demo.py
with node, so I compile it withHowever when I run this as
I get the error "SyntaxError: Cannot use import statement outside a module".
How can I fix this?
Environment
The text was updated successfully, but these errors were encountered: