Skip to content

Uncaught SyntaxError: Cannot use import statement outside a module #301

Closed Answered by tisba
afdev82 asked this question in Q&A
Discussion options

You must be logged in to vote

I think the error is misleading: Currently, mini_racer does not support ES6 modules and import statement for that matter.

See #126 or #143

Keep in mind, mini_racer is not NodeJS, it uses the same JavaScript engine (V8), but adds very little on top of it.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by afdev82
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@afdev82
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