Le 12/05/2020 à 13:06, Pirate Praveen a écrit : > > On Tue, May 12, 2020 at 10:58 am, Xavier <y...@debian.org> wrote: >> I fixed it using a simple buffer.js which requires node's "buffer". Now >> build is OK but simple "require" test warns: > > I think we will have to tell webpack to use > https://www.npmjs.com/package/buffer module here. > > https://github.com/webpack/node-libs-browser#outdated-versions says they > want buffer 4.x and in debian we already have node-buffer 5.x > > Try embedding buffer 4.x? We may even need to embed this in > node-libs-browser.
It's a problem with babel/tsc. I added this to fix the problem: perl -i -pe 's/=\s*import\(/= require\(/' lib/matrix.js -- Pkg-javascript-devel mailing list Pkg-javascript-devel@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel