You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was unable to run fresh project on Android. I was getting below error during compilation:
ERROR in node_modules/@types/jasminewd2/index.d.ts(8,23): error TS2688: Cannot find type definition file for 'jasmine/v2'.
Reproduction steps:
create fresh app : ng new --collection=@nativescript/schematics my-shared-app --shared
run app on android: tns run android --bundle
I'm able to run after i deleted all references to jasmine in the project.
The text was updated successfully, but these errors were encountered:
`Cannot find type definition file for 'jasmine/v2'` error is thrown when a new code shared application is created. It seems the issues comes [from this commit inside jasmine repo](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/38412/files#diff-704f3d6b17350ee2426b25280154df4f). Adding `skipLibCheck: true` to `tsconfig.json` will skip the checks of `.d.ts` files inside `node_modules`. This will also improve the performance of typescript compilation with a lot of deps and files to process.
Rel to: #249
Currently when there is a web application and `ng add @nativescript/schematics` command is executed, the following error is thrown `ERROR in node_modules/@types/jasminewd2/index.d.ts(8,23): error TS2688: Cannot find type definition file for 'jasmine/v2'.`. Adding `skipLibCheck: true` will ensure that typescript will ignore `.d.ts` files from `node_modules`. As it requires too much efforts to add the option in `tsconfig.json`, we decided to add it inside `tsconfig.tns.json`.
As the option is added to `tsconfig.tns.json` file, there will be a difference compared to the behavior of `ng generate --collection=@nativescript/schematics [--shared]`:
* `ng generate --collection=@nativescript/schematics [--shared]` -> `skipLibCheck: true` is inside `tsconfig.json`
* `ng add @nativescript/schematics` -> `skipLibCheck: true` is inside `tsconfig.tns.json`
Rel to: #249
I was unable to run fresh project on Android. I was getting below error during compilation:
ERROR in node_modules/@types/jasminewd2/index.d.ts(8,23): error TS2688: Cannot find type definition file for 'jasmine/v2'.
Reproduction steps:
create fresh app : ng new --collection=@nativescript/schematics my-shared-app --shared
run app on android: tns run android --bundle
I'm able to run after i deleted all references to jasmine in the project.
The text was updated successfully, but these errors were encountered: