Good afternoon, the problem is that the images do not open, even if it lies in the same folder as the component itself ... Actually, the images are in a completely different folder, but due to the fact that they don’t want to open, I started They are already in the same folder to throw off, but it does not open vseravno. I tried a bunch of ways, other formats ...

for example, I ask:

technologies: [ { name: 'development', path: 'dev.png', link: '/' } ... { this.state.technologies.map(function (res, i) { return <a key={i} href={res.link} > <img src={res.path} /> <span class="name">{res.name}</span> </a> }) } 

The image is in the same folder.

  • In the console, the debugger has some errors, show it? - spectre_it
  • In the console: Failed to load resource: the server responded with a status of 404 (Not Found) left.png Failed to load the resource: the server responded with a status of 404 (Not Found) settings.png (not Found) responded with a status of 404 (Not Found): (not Found) coding.png (not Found) - Anton S.
  • need more information, how do you collect the project? and yes here, stackoverflow.com/help/mcve - spectre_it
  • I'm using npm, webpack - Anton S.
  • If you set, for example, the background from the css file, then the picture is displayed, if you set some img src from the component, it is not displayed. This makes no sense. Maybe in the webpack config something is not right, but everything seems to be normal, and should not affect it at all - Anton S.

0