Ran into trouble migrating to gatsby-plugin-image #31458
-
After migrating to
When I run
My current version of gatsby is: What am I missing? I have read over the extensive documentation but so far have not resolved this yet. Any help would be greatly appreciated. Cheers 👍🏼 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
You'll want to use |
Beta Was this translation helpful? Give feedback.
-
Here is the error message I am getting from Gatsby Cloud:
|
Beta Was this translation helpful? Give feedback.
-
On a second look the issue is quite clear: You're using It doesn't expect an array of |
Beta Was this translation helpful? Give feedback.
-
You @LekoArts are a rockstar! Thank you very much - this fixed my issue. |
Beta Was this translation helpful? Give feedback.
On a second look the issue is quite clear: You're using
<GatsbyImage />
incorrectly.It doesn't expect an array of
gatsbyImageData
but onlygatsbyImageData
. If you want to have art direction you'll need to use: https://www.gatsbyjs.com/docs/reference/built-in-components/gatsby-plugin-image/#withartdirection