[英]React app deployment to Netlify : Module not found: Error: Can't resolve './pages/HomePage' in '/opt/build/repo/src'
How can I solve this error?我该如何解决这个错误?
I tried many approaches like using Netlify CLI, linking to git and github but nothing worked.我尝试了许多方法,例如使用 Netlify CLI,链接到 git 和 github 但没有任何效果。
The app works fine in development mode with no errors but it shows Error:404 page not found on both Netlify and Github Pages该应用程序在开发模式下运行良好,没有错误,但在 Netlify 和 Github 页面上都找不到错误:404 页面
What should I do?我应该怎么办?
I found the solution, I changed the folders' names and pushed them into Github but Github didn't change the folders' names, and Netlify is case-sensitive towards nomenclature.我找到了解决方案,我更改了文件夹的名称并将它们推送到 Github 但 Github 没有更改文件夹的名称,并且 Netlify 对命名法区分大小写。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.