问题
在使用VSCode开发Vue应用是,有些vue文件显示错误,类似Module not found: Error: Can‘t resolve ‘‘@api/xxx‘‘
解决办法
I have noticed that if I use File -> Close folder and then File -> Open Folder... and open the project folder again, the errors are gone. If I just restart VS Code instead, I keep getting the errors. I presume that some internal cache gets cleared?
文章描述了在VSCode中开发Vue应用时遇到的模块找不到错误,作者发现关闭并重新打开项目文件夹可以暂时解决问题,但重启VSCode则会持续出现错误,推测可能是清理内部缓存的作用。
876





