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.

Reply via email to