Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Interface 'FunctionMatchers<Fn>' incorrectly extends interface 'Matchers<any>'

Tags:

angular

i use ngx-admin-starter, and updated to angular 11, and then this error appear

enter image description here

i have tried changing the @types/jasmine version but the error still appearing.

i also have tried changing the typescript, currently its on 4 but still the error appearing.

here's my dependencies

"@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",

does anyone have any idea why?

like image 288
naoval luthfi Avatar asked May 12 '21 06:05

naoval luthfi


1 Answers

So after couple hours researching and trying other solutions, i remove the @types/jasmine and install @types/jasminewd2@latest and it's working now

like image 191
naoval luthfi Avatar answered Oct 03 '22 05:10

naoval luthfi