Skip to content

Commit

Permalink
Add skipLibCheck to tsconfig
Browse files Browse the repository at this point in the history
Default template can't build due to this error:

"Cannot access ambient const enums when the '--isolatedModules' flag is
provided."

The errors are in node_modules/@vue/runtime-core so we can actually just
have ts skip checking files in node_modules.

See vitejs/vite#5814
  • Loading branch information
dave-burke committed Apr 6, 2022
1 parent 722015d commit 98dc048
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"skipLibCheck": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"]
},
Expand Down

0 comments on commit 98dc048

Please sign in to comment.