question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
larixercommented, Feb 16, 2021

@abadakhshan @just-jeb You might be interested to declare these dependencies as both peerDependencies and regular dependencies. In this case npm and yarn 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.

0reactions
abadakhshancommented, Feb 15, 2021

I guess it’s a problem with yarn, not with the builders. Am I missing something?

I created an issue for Yarn https://github.com/yarnpkg/berry/issues/2482

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found