How to install and use builder plugin @builder.io/gatsby-transform-images

Hi all,

Im trying to install and use this plugin for my builder site. And added the configuration inside the gatsby-config.js
image
and changed my page model query like below
image

but when building or running dev version I get the following error with the page query change.

What am I missing here?

Hi @shehan , try making the models array in the gatsby-config class cased [start with a capital letter]:


      resolve: "@builder.io/gatsby-transform-images",
      options: {
        models: ['Page', 'BlogArticle', 'Recipe'] , // Class case
        replaceLinksToStatic: true,
      }

Hey @aziz,

That did it. Wonder why that is. But thank you for the quick response and help. :slight_smile: