-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Icons not appearing in gatsbyJS #2
Comments
@kavimaluskam You need to configure Gatsby with a Webpack loader that can load inline SVGs
|
@vinaypuppal I got the same issue and followed your answer, but still the same issue. It doesn't display the icon, but only the svg source like data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjggMTI4Ij48ZyBmaWxsPSIjNjFEQU....... in |
Same issue here were you able to fix it? I tried using gatsby-plugin-svgr and gatsby-plugin-react-svg but still wasn't able to fix the issue. Using gatsby-plugin-react-svg I received the following error: TypeError: Object.keys(...).filter(...).reduce(...).trim is not a function. Is there any way to fix this? |
When i import the icon, it eventually vender the source string:
data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjggMTI4Ij48ZyBmaWxsPSIjNjFEQU....... in my web page,
While i tried to copy the svg source code like: https://github.com/fpoumian/react-devicon/blob/master/src/components/docker/original/DockerOriginal.svg
and render it in my project and it works.... any idea about this?
The text was updated successfully, but these errors were encountered: