vue3 -ts文件导入js文件报错

1.背景

 

 2.解决

在tsconfig.json文件中添加配置

"noImplicitAny": false, 
"allowJs": true,

或者使用 

 require 来导入文件

 

posted @ 2023-05-26 10:37  岑惜  阅读(1157)  评论(0)    收藏  举报