在webStorm编译器下编写vue文件出现unresolved type vue提示

虽然能运行,但是有条波浪线

首先需要下载vue.js包
去官网下载【https://github.com/vuejs/vue/tree/v2.6.10】
这链接进去应该直接是下载界面,如果在进入官网要注意选Tag的稳定版(2019-11-06)
在webStorm中出现unresolved type vue提示点击download下载解压即可
在webStorm中出现unresolved type vue提示

在webStorm,状况如图
在webStorm中出现unresolved type vue提示
1、打开设置界面
在webStorm中出现unresolved type vue提示
2、选择Language & FrameWorks > JavaScript > Libraries 点击Add
在webStorm中出现unresolved type vue提示
3、点击AttachFiles…
在webStorm中出现unresolved type vue提示
4、进入刚刚下载的vue解压包中的src > core 点击OK
在webStorm中出现unresolved type vue提示
5、不用再选,点击OK即可
在webStorm中出现unresolved type vue提示
结果
在webStorm中出现unresolved type vue提示
在webStorm中出现unresolved type vue提示

相关文章: