-
Hey, when i use GatsbyImage and pull data from graphql everything is ok but encounter problem when trying to use StaticImage component with relative source path. I migrated from v2 so suspecting gatsby can't resolve file source gived in src prop.
Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi Damian, I had the following in my own code which worked fine (Gatsby v2 & v3), in case that helps:
Let me know if it is still not working. Perhaps I can take a look at the code, if it is open sourced? Rodney |
Beta Was this translation helpful? Give feedback.
-
I realized that i forgot to type |
Beta Was this translation helpful? Give feedback.
I realized that i forgot to type
gatsby-pugin-image
in config, so remember to do it. As a curiosity, dynamicGatsbyImage
component works without it.