Skip to content
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

Peer dependency errors when starting a new project with Angular #1835

Closed
dtarnawsky opened this issue Mar 26, 2024 · 0 comments · Fixed by #1836
Closed

Peer dependency errors when starting a new project with Angular #1835

dtarnawsky opened this issue Mar 26, 2024 · 0 comments · Fixed by #1836
Labels

Comments

@dtarnawsky
Copy link
Contributor

The Angular starters have peer dependency warnings:

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @typescript-eslint/type-utils@7.2.0
npm WARN Found: eslint@7.32.0
npm WARN node_modules/eslint
npm WARN   dev eslint@"^7.26.0" from the root project
npm WARN   13 more (@angular-eslint/builder, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer eslint@"^8.56.0" from @typescript-eslint/type-utils@7.2.0
npm WARN node_modules/@angular-eslint/eslint-plugin-template/node_modules/@typescript-eslint/type-utils
npm WARN   @typescript-eslint/type-utils@"7.2.0" from @angular-eslint/eslint-plugin-template@17.3.0
npm WARN   node_modules/@angular-eslint/eslint-plugin-template
npm WARN 
npm WARN Conflicting peer dependency: eslint@8.57.0
npm WARN node_modules/eslint
npm WARN   peer eslint@"^8.56.0" from @typescript-eslint/type-utils@7.2.0
npm WARN   node_modules/@angular-eslint/eslint-plugin-template/node_modules/@typescript-eslint/type-utils
npm WARN     @typescript-eslint/type-utils@"7.2.0" from @angular-eslint/eslint-plugin-template@17.3.0
npm WARN     node_modules/@angular-eslint/eslint-plugin-template
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @typescript-eslint/utils@7.2.0
npm WARN Found: eslint@7.32.0
npm WARN node_modules/eslint
npm WARN   dev eslint@"^7.26.0" from the root project
npm WARN   13 more (@angular-eslint/builder, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer eslint@"^8.56.0" from @typescript-eslint/utils@7.2.0
npm WARN node_modules/@angular-eslint/eslint-plugin-template/node_modules/@typescript-eslint/utils
npm WARN   @typescript-eslint/utils@"7.2.0" from @angular-eslint/eslint-plugin-template@17.3.0
npm WARN   node_modules/@angular-eslint/eslint-plugin-template
npm WARN   1 more (@typescript-eslint/type-utils)
npm WARN 
npm WARN Conflicting peer dependency: eslint@8.57.0
npm WARN node_modules/eslint
npm WARN   peer eslint@"^8.56.0" from @typescript-eslint/utils@7.2.0
npm WARN   node_modules/@angular-eslint/eslint-plugin-template/node_modules/@typescript-eslint/utils
npm WARN     @typescript-eslint/utils@"7.2.0" from @angular-eslint/eslint-plugin-template@17.3.0
npm WARN     node_modules/@angular-eslint/eslint-plugin-template
npm WARN     1 more (@typescript-eslint/type-utils)
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @typescript-eslint/utils@7.2.0
npm WARN Found: eslint@7.32.0
npm WARN node_modules/eslint
npm WARN   dev eslint@"^7.26.0" from the root project
npm WARN   13 more (@angular-eslint/builder, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer eslint@"^8.56.0" from @typescript-eslint/utils@7.2.0
npm WARN node_modules/@angular-eslint/eslint-plugin/node_modules/@typescript-eslint/utils
npm WARN   @typescript-eslint/utils@"7.2.0" from @angular-eslint/eslint-plugin@17.3.0
npm WARN   node_modules/@angular-eslint/eslint-plugin
npm WARN 
npm WARN Conflicting peer dependency: eslint@8.57.0
npm WARN node_modules/eslint
npm WARN   peer eslint@"^8.56.0" from @typescript-eslint/utils@7.2.0
npm WARN   node_modules/@angular-eslint/eslint-plugin/node_modules/@typescript-eslint/utils
npm WARN     @typescript-eslint/utils@"7.2.0" from @angular-eslint/eslint-plugin@17.3.0
npm WARN     node_modules/@angular-eslint/eslint-plugin
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @typescript-eslint/utils@7.2.0
npm WARN Found: eslint@7.32.0
npm WARN node_modules/eslint
npm WARN   dev eslint@"^7.26.0" from the root project
npm WARN   13 more (@angular-eslint/builder, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer eslint@"^8.56.0" from @typescript-eslint/utils@7.2.0
npm WARN node_modules/@angular-eslint/utils/node_modules/@typescript-eslint/utils
npm WARN   @typescript-eslint/utils@"7.2.0" from @angular-eslint/utils@17.3.0
npm WARN   node_modules/@angular-eslint/utils
npm WARN 
npm WARN Conflicting peer dependency: eslint@8.57.0
npm WARN node_modules/eslint
npm WARN   peer eslint@"^8.56.0" from @typescript-eslint/utils@7.2.0
npm WARN   node_modules/@angular-eslint/utils/node_modules/@typescript-eslint/utils
npm WARN     @typescript-eslint/utils@"7.2.0" from @angular-eslint/utils@17.3.0
npm WARN     node_modules/@angular-eslint/utils

This can be resolved by updating:
"eslint": "^8.57.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsdoc": "^48.2.1",

And for good measure (to fix standalone components when running ionic generate):
"@ionic/angular-toolkit": "^11.0.1",

PR to follow....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant