Issues with Querying Images - Field extension arguments must be provided as an object

Howdy Prismic People!

We're currently building an interactive social guideline in Prismic. (You can check it out here: https://dnsw-social.netlify.app/)

The site is built on Gatsby, using @angeloashmore's gatsby-source-prismic plugin (https://github.com/angeloashmore/gatsby-source-prismic)

I've built a couple of sites using Gatsby and this source plugin, one only a couple months ago. But this time around I noticed some strange error messages:

 ERROR

Field extension arguments must be provided as an object. Received "SEARCHABLE" on `PrismicImageFixedType.base64`.


 ERROR

Field extension arguments must be provided as an object. Received "SORTABLE" on `PrismicImageFixedType.base64`.


 ERROR

Field extension arguments must be provided as an object. Received "true" on `PrismicImageFixedType.base64`.


 ERROR

Field extension arguments must be provided as an object. Received "SEARCHABLE" on `PrismicImageFixedType.src`.


 ERROR

Field extension arguments must be provided as an object. Received "SORTABLE" on `PrismicImageFixedType.src`.


 ERROR

Field extension arguments must be provided as an object. Received "false" on `PrismicImageFixedType.src`.


 ERROR

Field extension arguments must be provided as an object. Received "SEARCHABLE" on `PrismicImageFixedType.srcSet`.


 ERROR

Field extension arguments must be provided as an object. Received "SORTABLE" on `PrismicImageFixedType.srcSet`.


 ERROR

Field extension arguments must be provided as an object. Received "false" on `PrismicImageFixedType.srcSet`.


 ERROR

Field extension arguments must be provided as an object. Received "SEARCHABLE" on `PrismicImageFixedType.srcWebp`.


 ERROR

Field extension arguments must be provided as an object. Received "SORTABLE" on `PrismicImageFixedType.srcWebp`.


 ERROR

Field extension arguments must be provided as an object. Received "false" on `PrismicImageFixedType.srcWebp`.


 ERROR

Field extension arguments must be provided as an object. Received "SEARCHABLE" on `PrismicImageFixedType.srcSetWebp`.


 ERROR

Field extension arguments must be provided as an object. Received "SORTABLE" on `PrismicImageFixedType.srcSetWebp`.


 ERROR

Field extension arguments must be provided as an object. Received "false" on `PrismicImageFixedType.srcSetWebp`.


 ERROR

Field extension arguments must be provided as an object. Received "SEARCHABLE" on `PrismicImageFixedType.sizes`.


 ERROR

Field extension arguments must be provided as an object. Received "SORTABLE" on `PrismicImageFixedType.sizes`.


 ERROR

Field extension arguments must be provided as an object. Received "false" on `PrismicImageFixedType.sizes`.


 ERROR

Field extension arguments must be provided as an object. Received "SEARCHABLE" on `PrismicImageFixedType.width`.


 ERROR

Field extension arguments must be provided as an object. Received "SORTABLE" on `PrismicImageFixedType.width`.


 ERROR

Field extension arguments must be provided as an object. Received "false" on `PrismicImageFixedType.width`.


 ERROR

Field extension arguments must be provided as an object. Received "SEARCHABLE" on `PrismicImageFixedType.height`.


 ERROR

Field extension arguments must be provided as an object. Received "SORTABLE" on `PrismicImageFixedType.height`.


 ERROR

Field extension arguments must be provided as an object. Received "false" on `PrismicImageFixedType.height`.


 ERROR

Field extension arguments must be provided as an object. Received "SEARCHABLE" on `PrismicImageFluidType.base64`.


 ERROR

Field extension arguments must be provided as an object. Received "SORTABLE" on `PrismicImageFluidType.base64`.


 ERROR

Field extension arguments must be provided as an object. Received "true" on `PrismicImageFluidType.base64`.


 ERROR

Field extension arguments must be provided as an object. Received "SEARCHABLE" on `PrismicImageFluidType.src`.


 ERROR

Field extension arguments must be provided as an object. Received "SORTABLE" on `PrismicImageFluidType.src`.


 ERROR

Field extension arguments must be provided as an object. Received "false" on `PrismicImageFluidType.src`.


 ERROR

Field extension arguments must be provided as an object. Received "SEARCHABLE" on `PrismicImageFluidType.srcSet`.


 ERROR

Field extension arguments must be provided as an object. Received "SORTABLE" on `PrismicImageFluidType.srcSet`.


 ERROR

Field extension arguments must be provided as an object. Received "false" on `PrismicImageFluidType.srcSet`.


 ERROR

Field extension arguments must be provided as an object. Received "SEARCHABLE" on `PrismicImageFluidType.srcWebp`.


 ERROR

Field extension arguments must be provided as an object. Received "SORTABLE" on `PrismicImageFluidType.srcWebp`.


 ERROR

Field extension arguments must be provided as an object. Received "false" on `PrismicImageFluidType.srcWebp`.


 ERROR

Field extension arguments must be provided as an object. Received "SEARCHABLE" on `PrismicImageFluidType.srcSetWebp`.


 ERROR

Field extension arguments must be provided as an object. Received "SORTABLE" on `PrismicImageFluidType.srcSetWebp`.


 ERROR

Field extension arguments must be provided as an object. Received "false" on `PrismicImageFluidType.srcSetWebp`.


 ERROR

Field extension arguments must be provided as an object. Received "SEARCHABLE" on `PrismicImageFluidType.sizes`.


 ERROR

Field extension arguments must be provided as an object. Received "SORTABLE" on `PrismicImageFluidType.sizes`.


 ERROR

Field extension arguments must be provided as an object. Received "false" on `PrismicImageFluidType.sizes`.


 ERROR

Field extension arguments must be provided as an object. Received "SEARCHABLE" on `PrismicImageFluidType.aspectRatio`.


 ERROR

Field extension arguments must be provided as an object. Received "SORTABLE" on `PrismicImageFluidType.aspectRatio`.


 ERROR

Field extension arguments must be provided as an object. Received "false" on `PrismicImageFluidType.aspectRatio`.

I've noticed, as what I assume is a result, my images don't use source sets, unless I instruct the source plugin to download and process images locally, instead of using Imgix transformed images... during which I still receive the above error messages regardless.

If I had to guess this is occurring due to a change in either:

  • gatsby
  • gatsby-image
  • gatsby-plugin-sharp
  • gatsby-transformer-sharp
  • gatsby-source-prismic

But I'm not sure exactly where?

Is anyone else experiencing this issue?

My queries look like this:

image {
  fluid(maxWidth: 1000) {
    ...GatsbyPrismicImageFluid
  }
}

or (locally downloaded):

image {
  localFile {
    childImageSharp {
      fluid(maxWidth: 1000, quality: 90) {
        ...GatsbyImageSharpFluid_withWebp
      }
    }
  }
}

Any help or clues would be fantastic!

Hi there,

Welcome to the Prismic community.

In fact, we don't recommend using the "gatsby-plugin-sharp" plugin with Prismic as it is doing the same job as Imigix that Prismic is using.

Also we recommend you to use react-imgix plugin instead.

Please let us know if that fixes the issue,
Fares

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.