Hi, On Sun, 20 Sep 2020 at 15:18, Pirate Praveen <prav...@onenetbeyond.org> wrote:
> Control: tags -1 help > > On Sun, Sep 20, 2020 at 14:44, Pirate Praveen > <prav...@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
-- Pkg-javascript-devel mailing list Pkg-javascript-devel@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel