-
Notifications
You must be signed in to change notification settings - Fork 12k
Package undefined not found error when updating to @angular/cli 6.0.0-rc.0 #10167
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've started digging into this a bit and found its an error thrown by the schematic here, https://github.com/angular/devkit/blob/master/packages/schematics/update/update/index.ts#L393 After further investigation I found this is due to private / packages that are installed via git rather than npm's repository. When I removed the modules stored in Artifactory and the modules in github the update passed without issue. @benjamincombes do you have private packages? |
Hi @zackarychapple, thanks a lot for your answer! Yes, I'm using Verdaccio (https://github.com/verdaccio/verdaccio) to publish private packages used in all my projects. |
Seems like update is not compatible with private packages. The normal update flow might be a problem but we should be able to fix the migration one. |
just a little addition on @zackarychapple, even if you have a private package on an internal, or private, npm registry, you'll get the same error. The only dirty workaround is to remove private dependencies, execute the update, and then re add your dependencies again. error is still in 6.0.0-rc.1 |
What do you think about just providing a parameter I've also tried to spawn a process for What do you think? |
@manfredsteyer that would not resolve the issue because not all the packages are necessarily on the private repository. Sometimes it's prefixed packages
|
@zackarychapple You are right. I like your solution and I would be happy to have an additional |
Hi, I'm getting the same error when try to update from 1.6.3 to either 6.0.0 or 6.0.1 with the following commands: ng update @angular/cli --migrate-only --from=1.6.3 or ng update @angular/cli
|
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
Observed behavior
The following error message is displayed:
Desired behavior
App should be updated succesfully.
The text was updated successfully, but these errors were encountered: