AndreasFaust / gatsby-source-custom-api

Source data from any API and transform it to (File-)Nodes.
52 stars 25 forks source link

The plugin does not work with gatsby-plugin-image #24

Closed dmotan closed 3 years ago

dmotan commented 3 years ago

The plugin works fine with gatsby-image, but as you may know, gatsby-image is now deprecated and replaced with gatsby-plugin-image. Images are being downloaded but they are inaccessible.

image { local { childImageSharp { gatsbyImageData } } }

returns null always.

dmotan commented 3 years ago

It turned out that when I provide the image schema like this image: url: String modified: String It does not work, however, when I don't provide the schema, it yells on it Object 'image': Better provide a schema! but it works and I can access the image using the gatsby-plugin-image.

Any idea why this is happening?