ionic-team / starters

Starter templates for Ionic apps, used by the Ionic CLI
MIT License
462 stars 316 forks source link

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

Closed dtarnawsky closed 8 months ago

dtarnawsky commented 8 months ago

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....