Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to webpack5 #22

Open
AyoyimikaAjibade opened this issue Jan 21, 2022 · 0 comments
Open

Migration to webpack5 #22

AyoyimikaAjibade opened this issue Jan 21, 2022 · 0 comments

Comments

@AyoyimikaAjibade
Copy link

Please update @trust/json-document to migrate to webpack5 as maintaining it in the Debian OS environment caused a bug as we try to build the package with webpack 5.65.0, as you still support of webpack1.13.1

here is a link to the bug report https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1002865

The failing build major output looks like this while building with webpack 5.65.0

 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_build
make[1]: Entering directory '/home/ayoyimika/debian-js-packaging/trust-json-document/node-trust-json-document'
babeljs --no-babelrc src -d lib --presets=@babel/preset-env
Successfully compiled 10 files with Babel (4537ms).
webpack --output-filename json-document.js --mode development
asset json-document.js 99 bytes [emitted] (name: main)

ERROR in main
Module not found: Error: Recursion in resolving
Stack:
  undefined: (/home/ayoyimika/debian-js-packaging/trust-json-document/node-trust-json-document) ./lib/index.js

webpack 5.65.0 compiled with 1 error in 191 ms
make[1]: *** [debian/rules:32: debian/js/json-document.min.js] Error 1
make[1]: Leaving directory '/home/ayoyimika/debian-js-packaging/trust-json-document/node-trust-json-document'
make: *** [debian/rules:48: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

A simple solution i proffer is migrating to webpack5 to have access to its updated features, benefits and options https://webpack.js.org/migrate/5/

Thanks and Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant