gatsby-plugin-sharp 2.0.24 requires [email protected] but specifies peer dependency of gatsby@^2.0.0

Created on 5 Mar 2019  路  2Comments  路  Source: gatsbyjs/gatsby

Description

gatsby-plugin-sharp 2.0.24 requires [email protected] but specifies peer dependency of gatsby@^2.0.0

https://github.com/gatsbyjs/gatsby/pull/10257
https://github.com/gatsbyjs/gatsby/blob/8e1661806931b0af42b744b9b5c8cf2909ae1201/packages/gatsby-plugin-sharp/package.json#L43

Steps to reproduce

Use the right combination of plugins and configs to actuate gatsby-plugin-sharp and then at build time:

error Plugin gatsby-plugin-sharp returned an error


  Error: Cannot find module 'gatsby/dist/utils/cpu-core-count'

  - v8-compile-cache.js:159 require
    [code]/[v8-compile-cache]/v8-compile-cache.js:159:20

  - index.js:88 Object.<anonymous>
    [code]/[gatsby-plugin-sharp]/index.js:88:22

  - v8-compile-cache.js:178 Module._compile
    [code]/[v8-compile-cache]/v8-compile-cache.js:178:30

  - v8-compile-cache.js:159 require
    [code]/[v8-compile-cache]/v8-compile-cache.js:159:20

  - gatsby-node.js:3 Object.<anonymous>
    [code]/[gatsby-plugin-sharp]/gatsby-node.js:3:18

  - v8-compile-cache.js:178 Module._compile
    [code]/[v8-compile-cache]/v8-compile-cache.js:178:30

Expected result

Minor version updates to not break the install.

Actual result

Breakage.

Most helpful comment

 - [email protected]
 - [email protected]

was published with the fix. We don't need updated gatsby version, just added code to gracefully fallback to previous behaviour if gatsby is a bit older

All 2 comments

85ecf14e-8a45-460f-89b9-d8492caff761

Yeah, this user had the same experience :/

 - [email protected]
 - [email protected]

was published with the fix. We don't need updated gatsby version, just added code to gracefully fallback to previous behaviour if gatsby is a bit older

Was this page helpful?
0 / 5 - 0 ratings

Related issues

benstr picture benstr  路  3Comments

mikestopcontinues picture mikestopcontinues  路  3Comments

timbrandin picture timbrandin  路  3Comments

totsteps picture totsteps  路  3Comments

magicly picture magicly  路  3Comments