[英]how to resolve /src/index.js Module not found: Can't resolve './serviceWorker' in 'C:\Users\hp\weather\src'
I was building a weather app in react and I got the following error我正在构建一个天气应用程序,我收到以下错误
/src/index.js Module not found: Can't resolve './serviceWorker' in 'C:\Users\hp\weather\src'
/src/index.js 模块未找到:无法解析 'C:\Users\hp\weather\src' 中的 './serviceWorker'
what to do now?现在要做什么?
Looks like you have deleted the serviceWorker.js
file from the src/
folder.看起来您已经从
src/
文件夹中删除了serviceWorker.js
文件。
If it is not required, remove the import
statement from the index.js file as well.如果不需要,也请从 index.js 文件中删除
import
语句。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.