The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)

简介: The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)

问题


今天用 vscode 编辑器编写 vue 组件的时候, 由于自己改变了组件的文件名,导致引用组件的时候出现了 Vetur(1261) 的报错,报错现象如下:


15c2d428fac1474da5b7cac17ce7a0a1.png


解决方式


目前我的解决方式就是:保存好文件之后,关闭 vscode 编辑器,然后在打开就没有报错提醒了。这个问题通常是 vscode 引起的,一般是你很快的重命名了自己的文件。


4d5f1a519e6541faa9d1048324ab466c.png

目录
相关文章
|
机器学习/深度学习 Linux
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
184 0
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
|
1月前
|
Shell
adb: error: cannot create file/directory ‘d:/1.png‘: No such file or directory
adb: error: cannot create file/directory ‘d:/1.png‘: No such file or directory
21 0
|
7月前
|
Python
ERROR: file or directory not found: xx.py
​ 1、问题出现原因 在vscode中已导入pytest框架,做自动化demo小测试,运行Python文件一直出现如题错误,截图如下: ERROR: file or directory not found: xx.py  2、解决办法 1)直接把该文件移到当前主目录下,放在PYTHON-STUDY下 2)VSCode中右键tuopan.py文件,选择[在集成终端中打开],或者通过CD命令进入到tuopan.py文件所在目录 然后输入以下命令即可: 注:上述命令不是换行,在d:/前有空格 ,第一行信息为python所在安装路径,空格后的换行为运行的python文件的所在路径  
84 0
|
9月前
cancal报错 config dir not found
cancal报错 config dir not found
|
11月前
ftok info: No such file or directory
ftok info: No such file or directory
111 0
完美解决common_define.h: No such file or directory
完美解决common_define.h: No such file or directory
147 0
完美解决common_define.h: No such file or directory
|
并行计算 TensorFlow 算法框架/工具
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
234 0
cl.exe is unable to create an executable file. C compiler test failed.
cl.exe is unable to create an executable file. C compiler test failed.
163 0
cl.exe is unable to create an executable file
cl.exe is unable to create an executable file
111 0
autoreconf: failed to run autopoint: No such file or directory
autoreconf: failed to run autopoint: No such file or directory
145 0

热门文章

最新文章