@Ilya Hi!
Sorry for delay
So the main problem is that unfortunately now we don’t include resources to webpack build, so you need additional “hacks” for this. And AFAIK
svgr
produces react components from svg, and after it process
svg
file, it produces js file with
require('react')
inside
So when webpack further process this intemediate js file it tries to require
react
with
resolve.modules
and logically it should be found in
js/node_modules
, but this directory is not parent for
processedResources
, so that’s why webpack couldn’t find anything. WA is manually add absolute path to
node_modules
Add this to
resolve.js
config.resolve.modules.push(require("path").resolve(__dirname, "../../node_modules"));