I am using create-react-app. I am trying to call an image from my public folder from a file inside my src/components. I am receiving this error message.
You can try using simlinks, but in reverse.
React won't follow simlinks, but you can move something to the source directory, and create a simlink to it.
In the root of my project, I had a node server directory that had several schema files in it. I wanted to use them on the frontend, so I:
ln -s SRC_PATH_OF_SCHEMA_FILEThis gave react what it was looking for, and node was perfectly happy including files through simlinks.