You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I upgraded from 6.2.0-beta.9 to latest ^6.3 and suddenly my SVGs were not showing anymore. I went 1 by 1 each version to find which one breaks it and found out it's 6.2.3 I suspect the culprit could be this #14480
We're seeing this on the console
main.js:1 GET http://localhost:9002/images/icon-sprite.svg 404 (Not Found)
To Reproduce
We have a very weird way of loading up the sprite-sheet, so I don't know how could I reproduce it. I'll try to figure something out.
First thing first, the SVG is on a library that gets pulled as a dependency of the project with Storybook. The library is built with Webpack before being published to npm. This is what our Webpack does:
I have confirmed #14480 is what's causing the issue: I did the following and it's showing the SVGs again on 6.2.3 and also on 6.3.4
// main.jsconstsvgRule=config.module.rules.find(rule=>rule.test.toString().includes('svg'))config.module.rules=config.module.rules.filter(rule=>!rule.test.toString().includes('svg'))svgRule.options.esModule=true;config.module.rules.push(svgRule,// ... other rules
What's the next step? I don't really know what this property do, so I don't understand why is it breaking our SVGs
We’re cleaning house! Storybook has changed a lot since this issue was created and we don’t know if it’s still valid. Please open a new issue referencing this one if:
Describe the bug
I upgraded from
6.2.0-beta.9
to latest^6.3
and suddenly my SVGs were not showing anymore. I went 1 by 1 each version to find which one breaks it and found out it's 6.2.3 I suspect the culprit could be this #14480We're seeing this on the console
To Reproduce
We have a very weird way of loading up the sprite-sheet, so I don't know how could I reproduce it. I'll try to figure something out.
First thing first, the SVG is on a library that gets pulled as a dependency of the project with Storybook. The library is built with Webpack before being published to npm. This is what our Webpack does:
commonjs2
file-loader
package.json
'smain
attribute goes to./dist/main.js
which is the transpiled webpack outputAdditional context
I'm not sure where to start looking for a potential fix. Any guidance is appreciated!
The text was updated successfully, but these errors were encountered: