原文:vue3+ts 出现 import type declarations can only be used in TypeScript files/Type assertion expressions can only ...

vs code的设置中false: 发现还是有波浪线,虽然不影响编译,但是还是有warning 找到这一段,将其注掉,就OK了。这个是之前手工加入了,所以去掉。 参考:https: blog.csdn.net weixin article details ...

2022-04-08 18:15 0 2141 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM