-
-
Notifications
You must be signed in to change notification settings - Fork 244
Can't update to v18.1.0. @angular-eslint/schematics
not being detected?
#1906
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
@JamesHenry could you take a look at this when you have a chance? It is still an issue with v18.2.0. Thanks in advance 👍 |
Yes |
from what i understand, this line
|
@robertado Apologies, you are right, and as you can see in this file, this behaviour is new and specific to flat config. The reason for this is historically all the I have reopened because effectively you are reporting to me that this strategy is not workable with the Angular CLI, it apparently needs that package to be a direct dev dependency of the repo in question? I will need to test this out locally and see if it is consistent, and if so see if there is a workaround available, such as maybe exposing the schematics of |
@JamesHenry until now i updated the packages |
Same problem with @angular-eslint/builder in angular.json. Need to add it as a direct dependency or get an error when running 'ng lint' |
@jefbarn That is not the same thing, we have e2e tests that cover this and |
Looks like it's related to pnpm usage vs npm. Pnpm has stricter usage of transitive dependencies and the ng cli tool is trying to go directly into the node_modules directory to find it (it doesn't live there with pnpm unless you add it as a project dependency). |
@jefbarn Please provide a reproduction in a fresh issue, I just did:
And everything worked fine |
ng update
is not detecting that there's a new angular-eslint version:If I try to update
@angular-eslint/schematics
directly, it also fails to detect it:I see reference(s) of
@angular-eslint/schematics
onangular.json
and onpackage-lock.json
but not inpackage.json
. Could this be related? Or, am I missing something?Here's my
ng version
:The text was updated successfully, but these errors were encountered: