On 2019, ജൂലൈ 25 1:35:04 AM IST, Pirate Praveen <prav...@onenetbeyond.org> wrote: > > >On 2019, ജൂലൈ 25 1:14:27 AM IST, Pirate Praveen ><prav...@onenetbeyond.org> wrote: >> >> >>On 2019, ജൂലൈ 24 3:09:59 PM IST, Pirate Praveen >><prav...@onenetbeyond.org> wrote: >>>Opened https://github.com/nodejs/node/issues/28835 >> >>Upstream confirmed this is a bug and it is fixed already in 12.7.0. >Can >>we update nodejs in experimental? > >With node 12.7 from nodesource.com, > >Trying to load help.md is a problem. > >$ node --experimental-modules bin/src/index.js (node:10665) >ExperimentalWarning: The ESM module loader is experimental. >internal/modules/cjs/loader.js:833 >internalBinding('errors').triggerUncaughtException( > ^ >TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension: >/home/praveen/forge/node-rollup/bin/src/help.md >at Loader.resolve [as _resolve] >(internal/modules/esm/default_resolve.js:91:13) at >Loader.resolve (internal/modules/esm/loader.js:73:33) >at Loader.getModuleJob (internal/modules/esm/loader.js:149:40) >at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:43:40) > at link (internal/modules/esm/module_job.js:42:36) >
After a lot of trial and error, I got to run rollup directly as an ES module. I had to disable help.md loading. I will push this to a new branch on salsa. $ node --experimental-modules bin/src/index.js (node:20480) ExperimentalWarning: The ESM module loader is experimental. TODO: $ -- 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