You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@angular-devkit/build-angular required packages are requiring a peer of webpack@^4.0.0 with webpack "5.27.2" installed聽#20359
Yes, the previous version in which this bug was not present was:
"@angular-builders/custom-webpack": "11.0.0"
"webpack": "4.43.0"
Description
We are using "@angular-builders/custom-webpack": "11.0.0" in our devDependencies, and everything worked as expected with the usage of "webpack": "4.43.0".
After we updated our "webpack" dependency to version "5.27.2" we got some warnings related to "@angular-devkit/build-angular" required packages, these are the warnings:
@angular-devkit/build-webpack@0.1102.5 requires a peer of webpack@^4.6.0 but none is installed. You must install peer dependencies yourself.
@ngtools/webpack@11.2.5 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
webpack-dev-middleware@3.7.2 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
It can be reproduced with the latest "@angular-devkit/build-angular": "0.1102.5"
馃敩 Minimal Reproduction
ng new test-app
npm install webpack@latest
馃敟 Exception or Error
npm WARN @angular-devkit/build-webpack@0.1102.5 requires a peer of webpack@^4.6.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ngtools/webpack@11.2.5 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware@3.7.2 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
changed the title [-]@angular-devkit/build-angular required packages are requiring a peer of webpack@^4.0.0 whit webpack "5.27.2" installed[/-][+]@angular-devkit/build-angular required packages are requiring a peer of webpack@^4.0.0 with webpack "5.27.2" installed[/+]on Mar 23, 2021
In version 11 this is the expected behaviour as Webpack version 5 support is still experimental. This will be addressed in version 12 when #20084 is merged.
Kindly subscribe to the above mentioned PR, thanks.
Activity
[-]@angular-devkit/build-angular required packages are requiring a peer of webpack@^4.0.0 whit webpack "5.27.2" installed[/-][+]@angular-devkit/build-angular required packages are requiring a peer of webpack@^4.0.0 with webpack "5.27.2" installed[/+]alan-agius4 commentedon Mar 23, 2021
Hi @varevacdamir,
Thanks for this report.
In version 11 this is the expected behaviour as Webpack version 5 support is still experimental. This will be addressed in version 12 when #20084 is merged.
Kindly subscribe to the above mentioned PR, thanks.
varevacdamir commentedon Mar 23, 2021
Thank you @alan-agius4.
angular-automatic-lock-bot commentedon Apr 23, 2021
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.