webpackbar icon indicating copy to clipboard operation
webpackbar copied to clipboard

Support webpack 5

Open otakustay opened this issue 5 years ago • 11 comments

What problem does this feature solve?

I used webpackbar with webpack 5 for a while and found no compatibility issue, since npm 7 requires peer dependencies to match strictly, it is better to publish a new version upgrading peerDependencies to enable webpack 5

This feature request is available on Nuxt community (#c47)

otakustay avatar Oct 17 '20 08:10 otakustay

Hi! Thanks for notice about NPM. Same here we are also using it for nuxt3 with wp5 without any special issues.

pi0 avatar Oct 19 '20 10:10 pi0

I'm having issues installing it (when no package-lock.json is present from npm 6.x):

$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @company/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/webpack
npm ERR!   dev webpack@"^5.1.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^3.0.0 || ^4.0.0" from [email protected]
npm ERR! node_modules/webpackbar
npm ERR!   dev webpackbar@"^4.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/username/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/username/.npm/_logs/2020-10-19T20_22_41_253Z-debug.log

npm install --legacy-peer-deps works for now, but this package will definitely need to be updated

nicholas-ochoa avatar Oct 19 '20 20:10 nicholas-ochoa

I founded 1 problem with webpack 5 is broken feature profile. But main feature work fine

Tom910 avatar Oct 23 '20 07:10 Tom910

Hi. Webpack5 support is almost finished (6ba2f820fb1d668608a33b31fea836ac08ee4f4d) releasing soon && sorry for delay

pi0 avatar Nov 02 '20 19:11 pi0

Hi. Webpack5 support is almost finished (6ba2f82) releasing soon && sorry for delay

thanks

ckken avatar Nov 21 '20 13:11 ckken

mark

ckken avatar Jan 09 '21 09:01 ckken

Happens now in webpack 5 projects on npm install with npm@7:

npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^3.0.0 || ^4.0.0" from [email protected]
npm ERR! node_modules/webpackbar
npm ERR!   webpackbar@"^4.0.0" from the root project

thasmo avatar Feb 05 '21 00:02 thasmo

Maybe we don't need this plugin and move bar style to webpack core? Should be easy. Will be great to get feedback and improve built-in output and nobody need this plugin anymore, less deps and no problems with update

/cc @pi0

alexander-akait avatar Apr 02 '21 15:04 alexander-akait

Webpack5 ready plugin is already available as [email protected] (pre-release tag) :) I will run some final tests and mark at latest.

Maybe we don't need this plugin and move bar style to webpack core? Should be easy. Will be great to get feedback and improve built-in output and nobody need this plugin anymore, less deps and no problems with update

It would be a really nice idea if we can port this functionality directly into the webpack core. The most tricky part is multi-line output control. I guess we need to first extract bar functionality and then we can propose it :)

pi0 avatar Apr 02 '21 15:04 pi0

It would be a really nice idea if we can port this functionality directly into the webpack core. The most tricky part is multi-line output control. I guess we need to first extract bar functionality and then we can propose it :)

Yep, feel free to feedback, I will help :star:

alexander-akait avatar Apr 02 '21 16:04 alexander-akait

@pi0 Has there been any progress on webpack 5 compatibility since ... then? 😅 Would love to use webpackbar with webpack 5. ❤️

thasmo avatar Oct 13 '21 21:10 thasmo