[Pkg-javascript-devel] Bug#932962: node-sourcemap-codec: provide ES module

Pirate Praveen praveen at onenetbeyond.org
Thu Jul 25 08:38:24 BST 2019


Package: node-sourcemap-codec 
Version: 1.4.5-1
Severity: important

While running rollup directly as ES module,

$ node --experimental-modules bin/src/index.js           (node:19295) ExperimentalWarning: The ESM module loader is experimental.                        file:///home/praveen/forge/node-rollup/src/Module.js:17                                         import { encode } from 'sourcemap-codec';                ^^^^^^                                 SyntaxError: The requested module 'sourcemap-codec' does not provide an export named 'encode'       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 node module provide ES module and package.json has a "module" entry, Debian package does not ship ES module.
-- 
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/ab3f4c03/attachment.html>


More information about the Pkg-javascript-devel mailing list