[Pkg-javascript-devel] Bug#932961: node-acorn: ES module is broken
Pirate Praveen
praveen at onenetbeyond.org
Mon Aug 5 13:12:07 BST 2019
On Thu, 25 Jul 2019 12:56:00 +0530 Pirate Praveen <praveen at onenetbeyond.org> wrote:
> Package: node-acorn
> Version: 5.5.3+ds3-3
> Severity: important
>
> When trying to use ES module version of rollup,
>
> $ node --experimental-modules bin/src/index.js (node:19235) ExperimentalWarning: The ESM module loader is experimental. file:///home/praveen/forge/node-rollup/src/Module.js:1 import { parse } from 'acorn'; ^^^^^ SyntaxError: The requested module 'acorn' does not provide an export named 'parse' at ModuleJob._instantiate (internal/modules/esm/module_job.js:93:21) at async ModuleJob.run (internal/modules/esm/module_job.js:108:20) at async Loader.import (internal/modules/esm/loader.js:134:24)
>
> It seems the shipped ES module is broken.
>
We can ignore this bug till ESM loader is declared stable, as it needs an upstream change.
Currently node core ESM loader will consider a file as ES module only if package.json has "type": " module" field or the file extension is .mjs.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20190805/02b9a6c0/attachment.html>
More information about the Pkg-javascript-devel
mailing list