Skip to content

Gatsby plugin image required #127

Description

@psykzz

With PR #123 (https://github.com/contentstack/gatsby-source-contentstack/pull/123/files#diff-6d7a97f0e776f3de4a5359346231cd4ce6b76c437f8a414cecf918f23dfe9e62R45-R49) there is a new requirement for users to install additional plugins, even if they were not using those features.
This change was published as a patch version 3.1.1.

While i really appreciate the support to add these new features, having a patch upgrade fail builds and require new plugins feel bad.

Instead of a panic, could the feature just return the empty object. (Similar to if its not an asset originally).

Context error message

11:37:56  error Gatsby plugin image is required. Please check https://github.com/contentstack/gatsby-source-contentstack#the-new-gatsby-image-plugin for more help.
11:37:56  
11:37:56  
11:37:56    Error: Cannot find module 'gatsby-plugin-image/graphql-utils'
11:37:56    Require stack:
11:37:56    - /home/jenkins/workspace/node_modules/gatsby-source-contentstack/extend-node-type.js
11:37:56    - /home/jenkins/workspace/node_modules/gatsby-source-contentstack/gatsby-node.js
11:37:56    - /home/jenkins/workspace/node_modules/gatsby/dist/bootstrap/load-plugins/validate.js
11:37:56    - /home/jenkins/workspace/node_modules/gatsby/dist/bootstrap/load-plugins/load.js
11:37:56    - /home/jenkins/workspace/node_modules/gatsby/dist/bootstrap/load-plugins/index.js
11:37:56    - /home/jenkins/workspace/node_modules/gatsby/dist/bootstrap/load-config-and-plugins.js
11:37:56    - /home/jenkins/workspace/node_modules/gatsby/dist/services/initialize.js
11:37:56    - /home/jenkins/workspace/node_modules/gatsby/dist/services/index.js
11:37:56    - /home/jenkins/workspace/node_modules/gatsby/dist/bootstrap/index.js
11:37:56    - /home/jenkins/workspace/node_modules/gatsby/dist/commands/build.js
11:37:56    - /home/jenkins/workspace/node_modules/gatsby/node_modules/gatsby-cli/lib/create-cli.js
11:37:56    - /home/jenkins/workspace/node_modules/gatsby/node_modules/gatsby-cli/lib/index.js
11:37:56    - /home/jenkins/workspace/node_modules/gatsby/dist/bin/gatsby.js
11:37:56    - /home/jenkins/workspace/node_modules/gatsby/cli.js

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions