簡體   English   中英

找不到與“xxx.js”匹配的文件中的錯誤

[英]ERROR in No files matching 'xxx.js' were found

我正在使用 webpack、React.js 和 Visual Studio 開發一個小項目。 重命名、刪除和創建名為 xxx.js 的某個文件后,出現錯誤:

ERROR in No files matching 'C:\MyPath\src\ViewLayer\xxx.js' were found.
Failed to compile.
No issues found.

可能是什么問題?

就我而言,我發現 C:\MyPath\public\stats.Z466DEEC76ECDF5FCA6D38571F6324.D 中存在條目C:\MyPath\src\ViewLayer\xxx.js C:\MyPath\public\stats.json 我刪除了這個文件並定期重新啟動項目:

npm start

它奏效了。 錯誤消失了。 我現在有:

Compiled successfully.
No issues found.

這是一個怪異的世界:-)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM