Open CarpenterBug opened 6 years ago
Same problem :( Did you find something ?
I guess you can do something like this:
require('webpack-svgstore-plugin/src/helpers/svgxhr')({
filename: '/theme_path/assets/' + __svg__.filename
});
Honestly, we should make it more convenient.
I took a couple of hours to debug this issues and, thanks to @webmarkelov "change the ajax path request?", I found a workaround that looks like an hack.
BUG
I was getting two errors:
GET http://domain.xyz/assets/icons/icons.svg 404 (Not Found) svgxhr.js:47
Uncaught Error: Invalid SVG Response at XMLHttpRequest._ajax.onload (svgxhr.js:38)
However, the sprite is generated on the correct path.FIX
By overwriting the
__svg__
filename, the errors are gone.Does anyone knows a way to fix it? Everything was working fine until the last update.