Hey everyone, I'm encountering some issues with importing images into my project. Previously, I was able to import images successfully in my old project using the same method that worked before, but it's not working this time around. The way I imported the image was like this:
import Fav from '../img/fav.png'
The file path is located in src/img/fav.png and I'm attempting to import it from src/components/App.jsx
The error message I'm receiving is as follows:
ERROR in ./img/fav.png 1:0
Module parse failed: Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
@ ./components/App.jsx 3:0-33
@ ./entry.jsx
@ multi ./entry.jsx
I've searched online for solutions, but haven't been able to find a fix yet. Thanks for any help you can provide.