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

Pirate Praveen praveen at onenetbeyond.org
Fri Jul 26 12:17:31 BST 2019


With node-rollup-plugin-typescript built from git master,

I get this error, I tried to symlink /usr/share/nodejs/tslib to node_modules but got the same error. I guess we need to pass the path to node-resolve plugin in rollup.config.js

$ rollup -c                                    
 [!] Error: Cannot find module 'tslib/tslib.es6.js' from '/usr/lib/nodejs/rollup-plugin-typescript/dist'                                         Error: Cannot find module 'tslib/tslib.es6.js' from '/usr/lib/nodejs/rollup-plugin-typescript/dist'                                                 at Function.module.exports [as sync] (/usr/lib/nodejs/resolve/lib/sync.js:40:15)                at typescript (/usr/lib/nodejs/rollup-plugin-typescript/dist/rollup-plugin-typescript.cjs.js:109:29)                                            at Object.<anonymous> (/home/praveen/forge/node-sourcemap-codec/rollup.config.js:13:3)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.require.extensions..js (/usr/lib/nodejs/rollup/bin/rollup:582:7)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
-- 
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/20190726/985c0692/attachment.html>


More information about the Pkg-javascript-devel mailing list