接口'FunctionMatchers<Fn>'错误地扩展了接口'Matchers<any>'
我使用 ngx-admin-starter,并更新为 angular 11,然后出现此错误
我已经尝试更改@types/jasmine版本,但错误仍然出现。
我也尝试过更改typescript,目前它在 4 上,但仍然出现错误。
这是我的依赖项
"@angular/cdk": "^11.2.12",
"@angular/common": "^11.2.13",
"@angular/compiler": "^11.2.13",
"@angular/core": "^11.2.13",
"@types/angular": "^1.8.1",
"@types/jasmine": "^3.7.2",
"@types/jasminewd2": "2.0.3",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
v"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
有谁知道为什么?
回答
因此,经过几个小时的研究和尝试其他解决方案后,我删除@types/jasmine并安装了@types/jasminewd2@latest它,现在它可以工作了
THE END
二维码