ionic-team/starters

Dependency errors with jasmine-core and karma-jasmine-html-reporter

dragermrb opened this issue · 2 comments

Starter Type: angular
Starter Template: tabs (maybe others)

Description:
There is a dependency problem with jasmine-core and karma-jasmine-html-reporter that prevents creating new projects.

ionic start testApp tabs --type=angular --capacitor

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: testApp@0.0.1
npm ERR! Found: jasmine-core@3.6.0
npm ERR! node_modules/jasmine-core
npm ERR!   dev jasmine-core@"~3.6.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer jasmine-core@">=3.7.1" from karma-jasmine-html-reporter@1.6.0
npm ERR! node_modules/karma-jasmine-html-reporter
npm ERR!   dev karma-jasmine-html-reporter@"^1.5.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Cause is:

"jasmine-core": "~3.6.0", // Resolves to 3.6.0
"karma-jasmine-html-reporter": "^1.5.0", // Resolves to 1.6.0 a depends on "jasmine-core": ">=3.7.1"

It's fixed on pending PR #1678 from @jcesarmobile

Thanks for the issue! I merged #1678, so this issue should be resolved soon once new starters deploy.