Howdy folks, I am using Gatsby to build and host a pretty simple landing page. My builds were working just fine for awhile before they stopped working. I was unable to track down what changes I made to cause the build to fail. The log shows "build.command" failed . It is worth noting that the app builds without any issues locally. The logs are showing a failure on error Generating JavaScript bundles failed. Evidently it cannot find my components. I am unsure why and unsure how to move forward.
Steps I have taken:
Removed package-lock.json and node modules folder. Reinstalled. Same issue.
Through exploring forms, saw that the use of the build command CI= npm run build might help. It did not.
Tried disconnecting and reconnecting my repo, no change.
After Comment Below
Checked module filenames to make sure they are all the same, still no luck.
You need need to make sure the file exists in your repo and the name of the file has the same case as your import statement. For example, if you import as import foo from bar your file name should also be bar and not Bar or BAR or anything else.
I checked all my file names to make sure they are correct. I also cleared cache and tried it again. Still no luck. I’ve had the same file structure since the beginning.