Remove "@angular-devkit" from custom-webpack published package.json dependencies.
See original GitHub issue“@angular-devkit/architect”: “>=0.1100.0 < 0.1200.0”, “@angular-devkit/build-angular”: “>=0.1100.0 < 0.1200.0”, “@angular-devkit/core”: “^11.0.0”
in “@angular-builders/custom-webpack” in some scenario with yarn causes that we have two different versions of these packages, one in node_modules
root and another in node_modules/@angular-builders/custom-webpack/node_modules
.
Moving these dependencies to peer dependencies in the published package.json can solve this problem.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Uninstalling packages and dependencies - npm Docs
This uninstalls a package, completely removing everything npm installed on its behalf. It also removes the package from the dependencies, devDependencies, ...
Read more >How To Use Custom webpack Configurations with Angular ...
Learn how to create a custom webpack config inside an Angular project using CLI Builders. This example will reduce the file size of...
Read more >@angular-devkit/build-angular - npm package | Snyk
We found that @angular-devkit/build-angular demonstrates a positive version release cadence with at least one new version released in the past 3 months. As...
Read more >An unhandled exception occurred: Could not find the ...
This worked for me: As per @lak-coder on: https://github.com/angular/angular-cli/issues/14546. run. npm uninstall @angular-devkit/build- ...
Read more >Schematics: Add Tailwind CSS to your Angular project
@angular-builders/custom-webpack version depends on @angular-devkit/build-angular . Then, we are replacing package.json with our modified ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@abadakhshan @just-jeb You might be interested to declare these dependencies as both peerDependencies and regular dependencies. In this case
npm
andyarn 1
will treat them as regular dependencies. Yarn 2+ will treat them as peerDependencies if they are provided by the parent package and regular dependencies if they were not provided by a parent package.I created an issue for Yarn https://github.com/yarnpkg/berry/issues/2482