配置isolatedModules执行build指令,vue-runtime报错。
来源:2-6 Vite 中使用 Typescript

精慕门6455323
2021-07-17
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 }
~
1回答
-
Jokcy
2021-07-17
00
相似问题