[Pkg-javascript-devel] Bug#933077: /usr/lib/nodejs/tslib vs /usr/share/nodejs/tslib breaking node-rollup-plugin-typescript

Pirate Praveen praveen at onenetbeyond.org
Fri Jul 26 14:11:44 BST 2019


Package: node-tslib, node-typescript, node-rollup-plugin-typescript
Severity: serious
Justification: breaks node-rollup-plugin-typescript

In last upload of node-tslib, location was changed from /usr/lib/nodejs to /usr/share/nodejs. This broke node-rollup-plugin-typescript as it was trying to load 'tslib/tslib.es6.js'

While running rollup from node-sourcemap-codec it failed

praveen at mahishasura:~/forge/node-sourcemap-codec$ 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)

It worked after adding a symlink to /usr/share/nodejs/tslib from /usr/lib/nodejs/rollup-plugin-typescript/node_modules.

I'm not sure if that is the right fix. Ideas?

Shouldn't node-typescript also move tslib to /usr/share/nodejs? 
-- 
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/e49b436a/attachment.html>


More information about the Pkg-javascript-devel mailing list