Migrate Gatsby/React/GitHub Pages site to Netlify

I need advice to debug deploy https://app.netlify.com/sites/unruffled-bell-2b4db6/deploys/5df38dc7f0d9800183c4cf13

I’ve tried the usual way of adding a New site from Git but the site failed to deploy. Should I disable GitHub pages first and then try to deploy to Netlify?

I don’t think the failure has anything to do with GitHub pages…seems pretty straightforward:

4:46:06 AM: Can't resolve '../components/home/Bio' in '/opt/build/repo/src/pages'

Are you sure that path is in the repo (or is generated during build before it is used)? Are you sure it is uppercase there? Our builds are case sensitive and a directory called “Bio” is not the same as one called “bio” in our build environment; we recommend standardizing in your files and in your references from code on lowercase, since that will match what npm or yarn creates by default…

Thanks for your help.

Yes, it’s the correct path. I also made sure that all the capitalized characters were consistent throughout. Still having trouble deploying this repo =/

Deploy log: https://app.netlify.com/sites/frosty-brahmagupta-1f2ad5/deploys/5e22454c882d57ae85594e68

hi there,

The problem is undeniably this:

3:39:15 PM: failed Building production JavaScript and CSS bundles - 19.143s

3:39:15 PM: error Generating JavaScript bundles failed

3:39:15 PM: Can't resolve '../components/home/Bio' in '/opt/build/repo/src/pages'

I saw that you said you checked the capitalization, but do know that GitHub doesn’t handle capitalization issues super well. You may have changed it locally, but I would double check that things are correct in the repo. Simply pushing a file with a changed case doesn’t always fix the problem. You may do better deleting the file, pushing the repo, then recreating the file with the correct case, and pushing again.

Good luck. Let us know if that still doesn’t help.

You’re a star. Worked like a charm. I created a new file with a different name and copied in the code from Bio.js.

Thank you so much!

1 Like

you are welcome! Glad it worked. :+1: :