前言
出现这个问题很久了,虽然不影响我们的项目的正常运行,但始终是看待这个红色的东西,心里面就会很不舒服!开始啦!
报错环境
在创建vue项目之后,编辑.vue
的文件,出现报错:(但不影响项目的正常运行)
Argument of type ‘{}’ is not assignable to parameter of type ‘new
(…args: any[]) => any’. Type ‘{}’ provides no match for the
signature ‘new (…args: any[]): any’.Vetur(2345)
报错截图
解决方法
在setting.json文件里面添加以下代码:
"files.associations": {
"*.vue":"html"
}