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.
src/components
the best solution is to fork react-scripts, this is actually mentioned in the official documentation, see: Alternatives to Ejecting
react-scripts