jacobmischka / gatsby-plugin-react-svg

Adds svg-react-loader to gatsby webpack config
https://www.npmjs.com/package/gatsby-plugin-react-svg
MIT License
70 stars 21 forks source link

Image not rendering properly #21

Closed ghost closed 4 years ago

ghost commented 5 years ago

Description

followed the tutorial as provided and am unable to successfully render an image to the screen using plugin.

Steps to reproduce

  1. installed plugin
  2. added plugin to gatsby-config.js and included images with path inline.svg
  3. imported image and referred to it as a react component, as in tutorial
  4. ran gatsby develop and loaded page, image is not showing, a blank react component is being shown in the code

Dependencies

{
"gatsby-plugin-react-svg": "^2.1.1",
"svg-react-loader": "^0.4.6",
"url-loader": "^1.1.2"
 }
jacobmischka commented 4 years ago

Sorry, are you still having this issue? Or, since it's been so long (apologies), are you even using the plugin anymore?