[Pkg-javascript-devel] Bug#932958: node-locate-character: provide ES module specified in package.json

Pirate Praveen praveen at onenetbeyond.org
Thu Jul 25 08:01:15 BST 2019


Package: node-locate-character:
Version: 2.0.1-3
Severity: wishlist

When trying to use ES module directly in node-rollup, I got this error.

$ node --experimental-modules bin/src/index.js           (node:18797) ExperimentalWarning: The ESM module loader is experimental.                        file:///home/praveen/forge/node-rollup/src/ast/Node.js:3                                        import { locate } from 'locate-character';               ^^^^^^                                 SyntaxError: The requested module 'locate-character' does not provide an export named 'locate'      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)

Even though upstream provides an ES module, and package.json mentions "module" field, it is missing from Debian package. Please generate and include ES module in the package.
-- 
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/20190725/3363db2d/attachment.html>


More information about the Pkg-javascript-devel mailing list