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

Latest gatsby fails to compile #37294

Closed
2 tasks done
floofydoug opened this issue Dec 19, 2022 · 4 comments
Closed
2 tasks done

Latest gatsby fails to compile #37294

floofydoug opened this issue Dec 19, 2022 · 4 comments
Labels
type: bug An issue or pull request relating to a bug in Gatsby

Comments

@floofydoug
Copy link

floofydoug commented Dec 19, 2022

Preliminary Checks

Description

I cannot start gatsby develop

Reproduction Link

n/a

Steps to Reproduce

  1. gatsby init
  2. gatsby new test
  3. gatsby develop

Expected Result

starts project

Actual Result

dyld: lazy symbol binding failed: Symbol not found: _pthread_jit_write_protect_supported_np
  Referenced from: /Users/{{USER_REDACTED}}/{{blog_name_redacted}}/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _pthread_jit_write_protect_supported_np
  Referenced from: /Users/{{USER_REDACTED}}/{{blog_name_redacted}}/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
  Expected in: /usr/lib/libSystem.B.dylib

Environment

System:
    OS: macOS 10.15.7
    CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.12.1/bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 108.0.5359.124
    Safari: 15.6.1
  npmPackages:
    gatsby: ^5.3.2 => 5.3.2
    gatsby-plugin-image: ^3.3.2 => 3.3.2
    gatsby-plugin-manifest: ^5.3.1 => 5.3.1
    gatsby-plugin-sharp: ^5.3.2 => 5.3.2
    gatsby-source-filesystem: ^5.3.1 => 5.3.1
    gatsby-transformer-sharp: ^5.3.1 => 5.3.1
  npmGlobalPackages:
    gatsby-cli: 5.3.1

Config Flags

no

@floofydoug floofydoug added the type: bug An issue or pull request relating to a bug in Gatsby label Dec 19, 2022
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 19, 2022
@teachdugsimt
Copy link

I have same issue.

@OlBal
Copy link

OlBal commented Dec 20, 2022

I am also having the same issue. Commenting out the offending plugins:
'gatsby-plugin-sharp', 'gatsby-transformer-sharp' in my gatsby-config.ts allows me run gatsby develop but gives the following in the console:

Error 610: GraphQLDocumentError: Unknown type "ImageSharpFluid".
    at undefined:2:55
Error 613: GraphQLDocumentError: Unknown type "ImgixFixed".
    at undefined:2:32
 
    
    

@tyhopp
Copy link
Contributor

tyhopp commented Dec 21, 2022

This appears to happen in the latest version of sharp (v0.31.2), see lovell/sharp#3438.

Temporarily can you try using resolutions to force usage of the prior sharp (v0.31.1) to see if this makes it work on your machines? I'm not able to reproduce on my macOS machine since it's on the latest version

@tyhopp tyhopp removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 21, 2022
@tyhopp
Copy link
Contributor

tyhopp commented Dec 21, 2022

Following up on this, we recommend the same as lovell/sharp#3438 (comment).

Since the issue only seems to happen on macOS 10.x, and macOS 10.x is end of life as of 3 months ago, we will not pin sharp so we don't block future version bumps.

For anyone running into this then on macOS 10.x I'd recommend either upgrading to macOS 11 or pinning to older Gatsby versions (which should be [email protected] and [email protected]).

@tyhopp tyhopp closed this as not planned Won't fix, can't repro, duplicate, stale Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

4 participants