请稍等 ...
×

采纳答案成功!

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

配置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下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号