[Pkg-javascript-devel] Bug#977269: Bug#977269: node-rollup-plugin-terser seems incompatible with current node-terser
Pirate Praveen
praveen at onenetbeyond.org
Sun Dec 13 19:56:13 GMT 2020
On Sun, Dec 13, 2020 at 1:19 pm, Xavier Guimard <yadd at debian.org> wrote:
> Package: node-rollup-plugin-terser
> Version: 7.0.2-2
> Severity: grave
> Justification: renders package unusable
>
> When trying current rollup-plugin-terser (7.0.2) with current
> node-terser (4.1.2), package is unuseable:
>
> $ rollup -c
>
> index.js → dist/pako.js, dist/pako.min.js...
> [!] (plugin terser) Error: Cannot find module
> '/home/xavier/dev/debian/src/pkg-js/packages/node-pako/node_modules/terser/dist/bundle.min.js'.
> Please verify that the package.json has a valid "main" entry
> Error: Cannot find module
> '/home/xavier/dev/debian/src/pkg-js/packages/node-pako/node_modules/terser/dist/bundle.min.js'.
There is a possibility that this is caused by symbolic links.
I'm hit by symbolic link issue with yarn so I suspect this could be the
case here too.
Try adding a custom path to node-resolve plugin instead of adding a
symbolic link
see this example
https://salsa.debian.org/js-team/node-chart.js/commit/979576e93b7aa17083ae5149e9753a5f6b1a522d
More information about the Pkg-javascript-devel
mailing list