Skip to content

Commit

Permalink
Disabled isolatedModules & noImplicitAny flags.
Browse files Browse the repository at this point in the history
isolatedModules flag was causing vuejs reactivity compilation errors.
See error below and vitejs/vite#5814 & vuejs/core#1228

```
node_modules/@vue/reactivity/dist/reactivity.d.ts:26:15 - error TS2748: Cannot access ambient const enums when the '--isolatedModules' flag is provided.

26     readonly [ReactiveFlags.IS_READONLY]: boolean;
```

noImplicitAny flag was causing compilation errors when using named slots.
  • Loading branch information
wrathofrathma committed Apr 2, 2022
1 parent 5716281 commit ff45744
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"isolatedModules": false,
"esModuleInterop": true,
"noImplicitAny": false,
"lib": ["esnext", "dom"]
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
Expand Down

0 comments on commit ff45744

Please sign in to comment.