Open shail opened 4 years ago
Also when I tried to use import in the About.js file:
import aboutIconimg from "../assets/aboutIcon.png";
I got the same exact error
Please provide some way to reproduce this
Same issue, after I run build with Parcel and run an HTTP server in the /dist directory the page doesn't load and I get this error. Can't seem to import images.
To reproduce import any image and run Parcel build.
Same issue here.
Same issue here. When I try to import images via JavaScript it does not work. Example, import img1 from "./img/a.png"; This is such an awesome plugin but can not use it for this reason, please fix this
I installed
parcel-plugin-imagemin
and after this I've been seeing a lot of errors like what I have pasted below. Before I installed the plugin, my images were loading without any issues, using the same code.Here is my package.json:
My render function contains:
Here is my folder structure: