test.ts is not a module
来源:7-7 使用vuex action 发送异步请求第二部分

有没有没被占用的昵称
2021-04-09
老师,我在test.ts写了一段
interface Rule {
[props: string]: any
}
export { Rule }
然后在.vue文件引入提示我 test.ts is not a module是什么原因呀
写回答
1回答
-
同学你好 光看这个信息没法良好的定位问题 你可以试试引入其他ts 文件是否正常。假如都有问题,说明 ts 的配置可能有问题。
022021-04-14
相似问题