My netlify project is failing to build because it can't locate a PDF saved within the project. This same project uses other files within this folder successfully, and the PDF works locally. I've checked the spelling and case-sensitivity and tried moving the PDF to other folders.
My goal is to link to the PDF in another tab/window, not to show it with my React App. This works locally.
CodePudding user response:
Figured out the issue. GitIgnore was preventing the PDF from being uploaded to my GitHub Repo. Removed the related GitIgnore code and problem is solved.
CodePudding user response:
This may be one of the reason to your module Not found
error.
When you try to build on Netlify
you should keep this in mind that it is case sensitive
.
You are not alone. Often, case (as in: UPPERCASE or lowercase letters in filenames or paths) can cause problems.
This issue also happens regardless of where the case sensitivity occurs. To be really clear, during the build step:
somefile.js != someFile.js != SomeFile.js != SOMEFILE.js != sOmEfIlE.js
There is a discussion on this issue, Here