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
Not quite sure if this is a problem with this library, or my setup, however I wanted to keep all the SVG imports as they are, in addition of using import {ReactComponent as Icon} from '...' in React Components.
Here's how my setup looked liked before adding svgr
Everything works fine except importing SVG's inside of LESS files (specifically speaking Iconmoon import): url('@{icomoon-font-path}/myfontsvg?clelyn#myfont') format('svg');
There were no errors, but all icons were appearing as rectangles [].
Please let me know if this is an issue with svgr, or I'm doing something in a wrong way.
Best regards.
P.S I've found a workaround, just want to be sure this isn't my fault :) The workaround
Hello there.
Not quite sure if this is a problem with this library, or my setup, however I wanted to keep all the SVG imports as they are, in addition of using
import {ReactComponent as Icon} from '...'
in React Components.Here's how my setup looked liked before adding svgr
And after
Everything works fine except importing SVG's inside of LESS files (specifically speaking Iconmoon import):
url('@{icomoon-font-path}/myfontsvg?clelyn#myfont') format('svg');
There were no errors, but all icons were appearing as rectangles [].
Please let me know if this is an issue with svgr, or I'm doing something in a wrong way.
Best regards.
P.S I've found a workaround, just want to be sure this isn't my fault :)
The workaround
The text was updated successfully, but these errors were encountered: