F
F
fierfoxik2017-10-16 13:13:42
webpack
fierfoxik, 2017-10-16 13:13:42

Image path error when building webpack, what's the problem?

Can anyone tell me, when building the React project, an error occurred with the paths of the pictures, similar errors fall out for all the pictures specified in sass

Module not found: Error: Can't resolve '../../img/powered-by-square-green.svg' in 'D:\work\move-search\styles'

If I'm not mistaken, then the loader config seems to be normal, in the running servers, the paths work fine except for those that are set by the src of the pictures, there you already have to do imports
like a loader for all types of pictures
{
    test: /\.png/,
    exclude: /(node_modules|bower_components)/,
    loader: "url-loader?limit=10000&mimetype=image/png"
  }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question