简体   繁体   中英

ERROR in No files matching 'xxx.js' were found

I am developing a small project using webpack, React.js with Visual Studio. After renaming, deleting and creating a certain file with the name xxx.js I have got an error:

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 . 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:-)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM