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 need to move WC-BlackonWhite.jpg into your src directory. The public directory is for static files that's going to be linked directly in the HTML (such as the favicon), not stuff that you're going to import directly into your bundle.