[Pkg-javascript-devel] The (long) way to update rollup
Pirate Praveen
praveen at onenetbeyond.org
Fri Jul 26 09:12:30 BST 2019
On 2019, ജൂലൈ 26 1:29:43 PM IST, Pirate Praveen <praveen at onenetbeyond.org> wrote:
>
>
>On 2019, ജൂലൈ 25 4:10:32 PM IST, Pirate Praveen
><praveen at onenetbeyond.org> wrote:
>>And it works! I was able to build node-d3-time with this version of
>>rollup.
>>
>>Check esm branch on salsa.
>
>I tried changing back require to import for locate-character after
>shipping ES module (please build node-locate-character git master) but
>got this error.
>
>Can some one try to reproduce this?
>
>$ rollup (node:18808) ExperimentalWarning: The ESM module loader is
>experimental.
>file:///usr/lib/nodejs/rollup/src/Module.js:5
>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)
In Debian package we have (in dist/locate-character.es.js),
exports.locate = locate;
But in npm registry tar, it is
export { getLocator, locate };
Could this be a problem?
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
More information about the Pkg-javascript-devel
mailing list