-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Updating Angular CLI & Core: "Cannot read property 'split' of null" #12644
Comments
I solved this issue by temporarily removing one package under For my specific case, it was |
I can confirm that wduville's fix worked for me as well |
Wduville's fix worked for me too. |
AFAICT, the error OP is seeing comes from this line of semver. Range constructor from semver is not designed to support range = null. |
same error with me, and I cant tell what the problem . any idea ? |
Hi, can someone please share your Thanks. |
@alan-agius4 I just ran into this problem today, here's the command I'm running:
When running the
Removing dev deps still has the issue, removing everything but Angular packages from dependencies lets the installer proceed, but still fails with:
Here is my package.json (minus some things which I don't think would matter):
|
Hi, is this still reproducible with the latest versions of the CLI? I am unable to replicate this, with the above |
I haven't ran into it again. |
People experience this issue when some of the libraries they are using have a malformed peerDependency semver syntax. If they update the latter libraries to a newer version that fixes it, the angular updater will not fail. The PR #12806 makes the ng updated more robust to this issue. |
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. |
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Repro steps
Using Angular with Angular Fire, Angular Flex, ngxs, firebase, rxjs.
Ran command:
ng update @angular/cli @angular/core
The log given by the failure
Only got this one line, nothing else:
Cannot read property 'split' of null
Desired functionality
A working update would be the best, at least some more details on why Angular couldn't be updated would be nice.
Mention any other details that might be useful
The text was updated successfully, but these errors were encountered: