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

Jérémy Lal kapouer at melix.org
Fri Jul 26 14:34:07 BST 2019


Le ven. 26 juil. 2019 à 15:15, Pirate Praveen <praveen at onenetbeyond.org> a
écrit :

> 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?
>

It seems several packages are installing files into
"rollup-plugin-typescript".
In this case, all such packages should agree upon the place where the
common directory should be (/usr/share/nodejs/rollup-plugin-typescript looks
fine to me).

Jérémy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20190726/f3b978a7/attachment.html>


More information about the Pkg-javascript-devel mailing list