I've built a small app in React (not using CRA).
I've deployed to Heroku and it's uploaded fine, but I'm having one issue in which a static JSON file I created myself isn't fetching (Works fine locally).
I'm getting the below error:
Here is my folder structure:
I've tried creating a public folder outside of src but that didn't help either.
I have a basic Express setup:
Thanks
Make sure your JSON files are accessible. it sounds like you are trying to fetch a file and returning an HTML/XML response. it usually happens when your file has some error.