Skip to content

Commit 8bdf6a6

Browse files
committed
fix: add skipLibCheck in tsconfig.tns.json
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
1 parent 1205f82 commit 8bdf6a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/add-ns/_ns-files/tsconfig__nsext__.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"module": "es2015",
55
"moduleResolution": "node",
6+
"skipLibCheck": true,
67
"paths": {
78
"@src/*": [
89
"<%= sourceDir %>/*.tns.ts",

0 commit comments

Comments
 (0)