I'm currently using npm installed webpack for gitlab. I'm trying to see
if I can use apt installed webpack instead.

I removed /usr/share/gitlab/node_modules/webpack and run ln -s
/usr/lib/nodejs/webpack /usr/share/gitlab/node_modules

But I get many errors similar to this

ERROR in /usr/lib/nodejs/timers-browserify/main.js
Module not found: Error: Can't resolve 'setimmediate' in
 @ /usr/lib/nodejs/timers-browserify/main.js 49:0-23
 @ /usr/lib/nodejs/readable-stream/lib/_stream_writable.js
 @ /usr/lib/nodejs/readable-stream/readable-browser.js
 @ /usr/lib/nodejs/readable-stream/transform.js
 @ /usr/lib/nodejs/browserify-zlib/src/index.js
 @ /var/lib/gitlab/~/pdfjs-dist/build/pdf.js
 @ ./pdf/index.vue
 @ ./blob/pdf/index.js
 @ ./blob/pdf_viewer.js

/usr/lib/nodejs/setimmediate is present, but it is expecting it to be
relative to /usr/lib/nodejs/timers-browserify

Can someone help with providing the correct path for webpack?

PS: I can provide access to a test machine if someone is interested to
dig deeper.

If you want to setup gitlab locally, you can use
people.debian.org/~praveen/gitlab (as it is still in NEW).

Attachment: signature.asc
Description: OpenPGP digital signature

Pkg-javascript-devel mailing list

Reply via email to