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
Dynamic import() error #399
Comments
Thanks for the report. However, looking at the specification at https://tc39.es/ecma262/#sec-imports I don't see any definition of this syntax. Is this from a syntax proposal? |
I did not notice, it is actually from a proposal. But the feature is supported by most modern browsers. |
Now I have found it in the specification (Import Calls): https://tc39.es/ecma262/#sec-import-calls |
Yes, this looks actually like a bug. I'm on it! |
Let me know if it is working for you now! |
Hi, I compiled the master branch using Go 1.15.8 and it shows a different error (used the main.js code from above):
|
I'm not sure what that is, it seems to work fine here and Travis builds fine. Perhaps a problem at your end? |
Yes, it was a problem on my end. |
import("./test.js").then((module) => { console.log(module.message)});
export const message = "This should print!";
It should work, but instead I get an error (since v2.9.16):
The text was updated successfully, but these errors were encountered: