You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[V19] Updating a project in pnpm mono-repo, throws cli mismatch version error #58832
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
Previously when updating a project within our mono-repo (using pnpm, consisting of many angular projects, mostly on v18.2), there were no issues upgrading project-by project.
This time when serving after upgrade, we get a cli mismatch error.
This only happens when running in a mono repo with pnpm.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
% npm run start
> start
> ng serve --host=0.0.0.0 --open
Localization (`localize` option) has been disabled. The development server only supports localizing a single locale per build.
This version of CLI is only compatible with Angular versions ^18.0.0,
but Angular version 19.0.0 was found instead.
Please visit the link below to find instructions on how to update Angular.
https://update.angular.dev/
Please provide the environment you discovered this bug in (run ng version)
@JeanMeche I understand - it's just difficult to repro a large mono repo.
I can close this case but it's just very odd indeed, as we've never had this issue with previous upgrades.
I will investigate further and re-open if I find something more specific.
But here is some weird stuff that I just cannot explain:
%npx ng --version
19.0.1
%npx ng serve --open --configuration=en
This version of CLI is only compatible with Angular versions ^18.0.0,
I ended up manually removing node_modules/.bin/ng, then it works fine.
But every time I install dependencies again, it returns to the same error.
Must be something weird in our setup so I'll close this now.
Activity
spock123 commentedon Nov 22, 2024
Snippet from the root pnpm-lock.json
spock123 commentedon Nov 22, 2024
Upgrading to newer @types/node did not make a difference
JeanMeche commentedon Nov 22, 2024
Without a repro this isn't actionnable to us.
But it looks like you have a v18 instance of the CLI somewhere.
spock123 commentedon Nov 23, 2024
@JeanMeche I understand - it's just difficult to repro a large mono repo.
I can close this case but it's just very odd indeed, as we've never had this issue with previous upgrades.
I will investigate further and re-open if I find something more specific.
But here is some weird stuff that I just cannot explain:
I ended up manually removing node_modules/.bin/ng, then it works fine.
But every time I install dependencies again, it returns to the same error.
Must be something weird in our setup so I'll close this now.
angular-automatic-lock-bot commentedon Dec 24, 2024
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.