angular/jasminewd

Cannot find type definition file for 'jasmine/v2'

michaelmorgantalabat opened this issue ยท 8 comments

when i try to run my project i find the following issue:

ERROR in ../node_modules/@types/jasminewd2/index.d.ts:8:23 - error TS2688: Cannot find type definition file for 'jasmine/v2'.

8 /// <reference types="jasmine/v2" />

here is my jasmins versions:
"@types/jasmine": "~3.3.8",
"@types/jasminewd2": "~2.0.3",
"jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.4.0",

and TS:
"typescript": "~3.5.3"

Same here. Can't figure out what caused this issue. Nothing has changed.

I'm facing the same issue with an older project. ( last pipeline passed on 26th September )

jasmine & ts versions:
"@types/jasmine": "^2.8.4",
"@types/jasminewd2": "^2.0.3",
"jasmine-core": "^2.8.0",
"jasmine-spec-reporter": "~4.1.0",
"tslint": "~5.7.0",
"typescript": "~2.8.3",

After update to newest version (@types/jasmine 3.4.1 and @types/jasminewd2 2.0.7). I'm still missing the v2 folder with the definition.

I've solved the issue with the versions below. Notice the missing ^ and ~ sign.

"@types/jasmine": "2.8.6",
"@types/jasminewd2": "2.0.3",
"jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1",
"tslint": "~5.15.0",
"typescript": "~3.4.3"

Shoe2 commented

got this issue as well with one project, but not with another. Very strange. I fixed it with the above mentioned reversion

A temporary solution is setting skipLibCheck: true in tsconfig.json as per:

NativeScript/nativescript-schematics#251

and it fails only when building with target:"es5". With es6 works fine for me

This issue has been already reported here: DefinitelyTyped/DefinitelyTyped#38656 and it belongs to that project.

Fix is published, update to @types/jasminewd2@2.0.8 or later to get it sorted out. ๐Ÿ›  โœ”๏ธ