On 2019, ജൂലൈ 24 3:09:59 PM IST, Pirate Praveen <prav...@onenetbeyond.org> wrote: > > >On 2019, ജൂലൈ 24 2:45:41 PM IST, Pirate Praveen ><prav...@onenetbeyond.org> wrote: >> >>$ node --experimental-modules bin/src/index.js (node:324) >>ExperimentalWarning: The ESM module loader is experimental. > >>internal/modules/cjs/loader.js:817 >>internalBinding('task_queue').triggerFatalException( >>^ Error >>[ERR_INTERNAL_ASSERTION]: Code: ERR_UNKNOWN_FILE_EXTENSION; The >>provided arguments length (2) does not match the required ones (1). > >>This is caused by either a bug in Node.js or incorrect usage of >Node.js >>internals. >>Please open an issue with this stack trace at >>https://github.com/nodejs/node/issues > >Opened https://github.com/nodejs/node/issues/28835 >
I tried converting minimist to ES module with $ rollup -f es /usr/lib/nodejs/minimist/index.js -o minimist.js And then import using relative path (both .js and .mjs), but ended up with the same error. -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- Pkg-javascript-devel mailing list Pkg-javascript-devel@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel