-
Notifications
You must be signed in to change notification settings - Fork 12k
ng update gives error when dependency is local only #10614
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
Comments
I am also experiencing this issue. The temporary solution that stopped the error occurring was to delete the local dependency from the package.json file and then run ng update @angular/cli. Once the .angular-cli.json was migrated to angular.json, I added the local dependency back in. |
Hello, What is really strange is that I have 2 local packages... And when I removed one, it's working! |
I have this problem too. Also I have the same problem with a github/gitlab reference, see #10642 |
Same issue here. |
Same here |
I think the best way to fix this issue would be to return an EMPTY observable in the logic to request the package.json when it's a local package (here: https://github.com/angular/angular-cli/blob/master/packages/schematics/update/update/npm.ts#L110 …). It's on our backlog but not our top priority. Would be easy to fix though. Great first bug :) |
Please, open a new issue if this is still reproducible with the latest CLI, following the template and providing a minimal demo. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
ng update @angular/cli
in order to convert .angular-cli.json into proper .angular.jsonObserved behavior
Desired behavior
I expect that ng update will just convert my .angular-cli.json into proper .angular.json without digging into my dependencies.
Mention any other details that might be useful (optional)
The text was updated successfully, but these errors were encountered: