404 Not Found ( Webpack Image )
How can I import an image using this web pack config? I get the following error in the console after I build the app using yarn build. How can I import the image to the dashboard f
Solution 1:
first of all , you should import your image like :
importMyImagefrom'../relative/path/to/your/image'
then use it like:
functionApp() {
return (
<divclassName="App"><imgsrc={MyImage}alt='any kind of description'></div>
);
}
Post a Comment for "404 Not Found ( Webpack Image )"