- Version: v8.11.1
- Platform: Win7 64-bit
- Subsystem: --experimental-modules
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>
If a module refers to another module with a syntax error, e.g.
Node claims that the syntax error is within Node.js itself: