报错代码
peishengle@peishengledeMacBook-Pro backstage % yarn start
yarn run v1.22.18
$ react-app-rewired start
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module '/Users/peishengle/Desktop/study/backstages/backstage/config-overrides'
Require stack:
- /Users/peishengle/Desktop/study/backstages/backstage/node_modules/react-app-rewired/config-overrides.js
- /Users/peishengle/Desktop/study/backstages/backstage/node_modules/react-app-rewired/overrides/paths.js
- /Users/peishengle/Desktop/study/backstages/backstage/node_modules/react-app-rewired/scripts/start.js
开始以为重点是
node:internal/modules/cjs/loader:936
throw err;
经过搜索发现各种各样的解决方案都有,后来看到接下来的一行报错
报错的文件config-overrides我没有,就找其他的项目复制了一个项目,放进去
再重新启动就好了
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)