Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1025738
| From | Nilesh Patra <npatra974@gmail.com> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#970550: [Pkg-javascript-devel] Bug#970550: replacing browserify with webpack or rollup - need help |
| Date | 2020-09-20 12:30 +0200 |
| Message-ID | <AR4Lv-6I4-1@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <AQo9z-69Z-1@gated-at.bofh.it> <AR3FL-66u-3@gated-at.bofh.it> <AR48N-6ga-1@gated-at.bofh.it> <AQo9z-69Z-1@gated-at.bofh.it> <AR48N-6ga-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Hi, On Sun, 20 Sep 2020 at 15:18, Pirate Praveen <praveen@onenetbeyond.org> wrote: > Control: tags -1 help > > On Sun, Sep 20, 2020 at 14:44, Pirate Praveen > <praveen@onenetbeyond.org> wrote: > > The warning now changes to, > > > > (!) Missing shims for Node.js built-ins > > Creating a browser bundle that depends on 'path', 'url' and 'os'. You > > might need to include > > https://www.npmjs.com/package/rollup-plugin-node-builtins > > (!) Unresolved dependencies > > > https://rollupjs.org/guide/en#warning-treating-module-as-external-dependency > > path (imported by ../../../usr/share/nodejs/browserslist/index.js, > > commonjs-external:path, > > ../../../usr/share/nodejs/postcss/lib/input.js, > > ../../../usr/share/nodejs/browserslist/node.js, > > ../../../usr/share/nodejs/postcss/lib/map-generator.js, > > ../../../usr/share/nodejs/postcss/lib/previous-map.js) > > rollup-plugin-node-builtins is not packaged in debian. So I decided to > try webpack (code pushed to a separate branch 'webpack'), > > This has resulted in a situation where we need to handle Buffer > correctyly. > > with Buffer: true in webpack.config.js, the build fails with error > > ERROR in /usr/share/nodejs/postcss/lib/map-generator.js > Module not found: Error: Can't resolve > './../../../../../<<PKGBUILDDIR>>/buffer' in > '/usr/share/nodejs/postcss/lib' > @ /usr/share/nodejs/postcss/lib/map-generator.js 1:0-89 > @ /usr/share/nodejs/postcss/lib/lazy-result.js > @ /usr/share/nodejs/postcss/lib/processor.js > @ /usr/share/nodejs/postcss/lib/postcss.js > @ ./lib/autoprefixer.js > I've seen these almost same buffer based errors before - with webpack specifically - and manually creating a symlink helped. I did the same in this case and the build passes with "Buffer: true" I've pushed the commit to the same webpack branch Could you take a look and let me know if it made the situation better/worse? Thanks and Regards, Nilesh
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#970550: diaspora installation fails with ExecJS::ProgramError: TypeError: Cannot read property 'list' of undefined Pirate Praveen <praveen@onenetbeyond.org> - 2020-09-18 15:00 +0200
Bug#970550: this is a bug in ruby-autoprefixer-rails Pirate Praveen <praveen@onenetbeyond.org> - 2020-09-18 16:40 +0200
Bug#970550: this is a bug in libjs-autoprefixer Pirate Praveen <praveen@onenetbeyond.org> - 2020-09-20 11:10 +0200
Bug#970550: replacing browserify with webpack or rollup - need help Pirate Praveen <praveen@onenetbeyond.org> - 2020-09-20 11:50 +0200
Bug#970550: [Pkg-javascript-devel] Bug#970550: replacing browserify with webpack or rollup - need help Nilesh Patra <npatra974@gmail.com> - 2020-09-20 12:30 +0200
Bug#970550: [Pkg-javascript-devel] Bug#970550: Bug#970550: replacing browserify with webpack or rollup - need help Pirate Praveen <praveen@onenetbeyond.org> - 2020-09-24 13:50 +0200
csiph-web