[英]ERROR in No files matching 'xxx.js' were found
I am developing a small project using webpack, React.js with Visual Studio.我正在使用 webpack、React.js 和 Visual Studio 开发一个小项目。 After renaming, deleting and creating a certain file with the name xxx.js I have got an error:
重命名、删除和创建名为 xxx.js 的某个文件后,出现错误:
ERROR in No files matching 'C:\MyPath\src\ViewLayer\xxx.js' were found.
Failed to compile.
No issues found.
What could be an issue?可能是什么问题?
In my case I discovered that the entry C:\MyPath\src\ViewLayer\xxx.js
exists in C:\MyPath\public\stats.json
.就我而言,我发现 C:\MyPath\public\stats.Z466DEEC76ECDF5FCA6D38571F6324.D 中存在条目
C:\MyPath\src\ViewLayer\xxx.js
C:\MyPath\public\stats.json
I removed this file and restarted the project with regular:我删除了这个文件并定期重新启动项目:
npm start
It has worked.它奏效了。 The error disappeared.
错误消失了。 Now I have:
我现在有:
Compiled successfully.
No issues found.
It is a vierd world:-)这是一个怪异的世界:-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.