简体   繁体   English

找不到与“xxx.js”匹配的文件中的错误

[英]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.

相关问题 未找到与该模式匹配的文件:“'**/*.js'” - No files matching the pattern were found: "'**/*.js'" 没有找到匹配的文件...。 (ReactJS) - No matching files ... were found. (ReactJS) 错误:找不到与模式“'./src/views/{tokens,atoms,molecules,organisms}/**/*.scss'”匹配的文件 - Error: No files matching the pattern "'./src/views/{tokens,atoms,molecules,organisms}/**/*.scss'" were found “没有找到与模式“src”匹配的文件。” 使用“npx eslint src”或“npx eslint src/”时 - "No files matching the pattern "src" were found." when using "npx eslint src" or "npx eslint src/" JS:通过找到的单词缩短搜索结果 - JS: shorten search results by the words, which were found React-Hot-Loader:由XXX引起的致命错误-找不到仪器 - React-hot-loader: fatal error caused by XXX - no instrumentation found 如何显示“未找到任何项目”React.js - How to Display "No Items Were Found" React.js Typescript导入一个React js组件,该组件由我自己编写并出现了d.ts文件。找不到模块:无法解析“ xxx”中的“ xxx” - Typescript import a React js component which d.ts file writed by myself and occured Module not found: Can't resolve 'xxx' in 'xxx' ./src/App.js 模块未找到:无法解析 xxx 中的“@material-ui/data-grid” - ./src/App.js Module not found: Can't resolve '@material-ui/data-grid' in xxx 未找到具有提供的路径的文件:build. 不会上传任何工件。 - Github 将 React 应用程序部署到 Firebase 的操作 - No files were found with the provided path: build. No artifacts will be uploaded. - Github Action for deploying React App to Firebase
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM