GrappleGQL / gatsby-source-wagtail

Plugin for sourcing Gatsby data from Wagtail CMS
17 stars 12 forks source link

Add dependency gatsby-transformer-sharp #26

Closed tbrlpld closed 7 months ago

tbrlpld commented 3 years ago

If gatsby-source-wagtail is installed into a relatively plain project that does not have many other dependencies, it can easily happen that the gatsby-transformer-sharp plugin is not installed.

This leads to errors, because preview.boilerplate.js contains the following line (440):

const fragmentTypes = require('gatsby-transformer-sharp/src/fragments.js')

The dependency on gatsby-transformer-sharp is now listed and automatically installed when gatsby-source-wagtail is installed.

The defined version (2.5.6) is based on an example project I was working on a while back. It would probably make sense to test lower versions of this dependency as well.