We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If a module refers to another module with a syntax error, e.g.
// script.mjs import * as module from './module';
// module.mjs export default function parse(csv, reviver) { }, export function stringify(table, replacer) { }
Node claims that the syntax error is within Node.js itself:
>node --experimental-modules "script.mjs" (node:8428) ExperimentalWarning: The ESM module loader is experimental. SyntaxError: Unexpected token , at ModuleJob.loaders.set [as moduleProvider] (internal/loader/ModuleRequest.js:33:13) at <anonymous>
The text was updated successfully, but these errors were encountered:
related to #19783, #19763, #19815
Sorry, something went wrong.
Fixed (or improved at least?) in Node.js 10.x. (h/t @targos)
$ node --experimental-modules "script.mjs" (node:11120) ExperimentalWarning: The ESM module loader is experimental. file:///Users/trott/io.js/module.mjs:2 }, ^ SyntaxError: Unexpected token , at translators.set (internal/modules/esm/translators.js:31:13) $
Yes, this was fixed in #17281 and/or #17786. I'll close this out.
No branches or pull requests
If a module refers to another module with a syntax error, e.g.
Node claims that the syntax error is within Node.js itself:
The text was updated successfully, but these errors were encountered: