Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
matt-assemble opened this issue Mar 5, 2019 · 2 comments · Fixed by #12332

Comments

@matt-assemble
Copy link

Description

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

#10257

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.

@LekoArts
Copy link
Contributor

LekoArts commented Mar 5, 2019

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

Yeah, this user had the same experience :/

@pieh
Copy link
Contributor

pieh commented Mar 5, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants