'React app deployment to Netlify : Module not found: Error: Can't resolve './pages/HomePage' in '/opt/build/repo/src'
Solution 1:[1]
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.
Solution 2:[2]
Check your directory names using gitbash
terminal, as it works like a linux
Netlify/Vercel are linux containers
check the actual case using gitbash and fix the name as per the import
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | karim_mo |
Solution 2 | arung86 |