{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"],
"types": ["vite/client"],
"isolatedModules": true
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
}
{
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && tsc --noEmit && vite build",
"serve": "vite preview"
},
"dependencies": {
"@vitejs/plugin-vue-jsx": "^1.1.6",
"less": "^4.1.1",
"typescript": "^4.3.5",
"vue": "^3.0.5",
"vue-tsc": "^0.2.1"
},
"devDependencies": {
"@postcss-plugins/console": "^0.2.5",
"@types/vfile-message": "^2.0.0",
"@vitejs/plugin-vue": "^1.2.5",
"@vue/compiler-sfc": "^3.0.5",
"vite": "^2.4.2"
}
}
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1112:6 - error TS2748: Cannot access ambient const enums when the '--isolatedModules' flag is provided.
1112 [BooleanFlags.shouldCast]?: boolean;
~~~~~~~~~~~~
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1113:6 - error TS2748: Cannot access ambient const enums when the '--isolatedModules' flag is provided.
1113 [BooleanFlags.shouldCastTrue]?: boolean;
~~~~~~~~~~~~
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1593:10 - error TS2748: Cannot access ambient const enums when the '--isolatedModules' flag is
provided.
1593 export { TrackOpTypes }
~~~~~~~~~~~~
node_modules/@vue/runtime-core/dist/runtime-core.d.ts:1621:10 - error TS2748: Cannot access ambient const enums when the '--isolatedModules' flag is
provided.
1621 export { TriggerOpTypes }
~~~~~~~~~~~~~~
src/test.ts:6:10 - error TS1205: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
6 export { A }
~