请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

配置isolatedModules执行build指令,vue-runtime报错。

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 }
~

正在回答 回答被采纳积分+3

1回答

Jokcy 2021-07-17 13:24:03
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信