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
If you use the React/Webpack import CSS/SCSS style where CSS/SCSS files are imported into js files like import styles from "./index.module.scss"; then background images loaded by URL's fail for SVG images.
* bug(v2): fix svg loader for styles re #3964
* ensure we only use SVGR loader in source code that can use React (ie not in CSS files)
* fix test
Co-authored-by: slorber <lorber.sebastien@gmail.com>
🐛 Bug Report
If you use the React/Webpack import CSS/SCSS style where CSS/SCSS files are imported into js files like import styles from "./index.module.scss"; then background images loaded by URL's fail for SVG images.
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
Expected behavior
The image should be shown in the background of Element.
Actual Behavior
The compiled CSS doesn't contain a valid image URL.
Your Environment
Reproducible Demo
https://github.com/i18n-components/i18n-components/tree/main/website
https://github.com/i18n-components/i18n-components/blob/main/website/src/pages/styles.module.scss#L24
The text was updated successfully, but these errors were encountered: