-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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 Incompatible library version #9687
Comments
This is probably duplicate of #9533 You need gatsby 2.0.33 or later. (^2.0.33) |
updated to Gatsby 2.038. Now I can compile but still get this error: error Plugin gatsby-transformer-sharp returned an error Error: dlopen(/Users/pedro/Projects/3Decide/int_alivevision_website/node_modules/gatsby-plugin-sharp/node_modules/sharp/build/Release/sharp.node, 1): Li brary not loaded: @rpath/libvips.42.dylib Even though I can compile I assume I won't be able to run gatsby-transformer-sharp with success. |
My gatsby-config.js module.exports = { ], |
@pedrotavaresgoncalves would you be able to create a repository where you can reproduce this? The other issue looks like it has concluded as this was the problem. |
Only able to solve with these specs. System: Had to use npm --build-from-source for installing sharp and firebase in node 11 . |
Had the same issue. Can confirm that downgrading from |
@btk I don't think this is a duplicate issue, right? |
@pedrotavaresgoncalves yeah, I followed your steps, but couldn't work it out. It might be about the environment? Can you reproduce the issue on a repository, and maybe hook it into a CI to see if your problem is about the environment, or a bug in Gatsby is causing this? |
Here's a repo https://github.com/pedrotavaresgoncalves/gatsby-debug install instructions: I copy pasted from my terminal :) |
Solved the development mode problem but still having trouble to build as you can see in #9707 Maybe node 11 is not yet very safe to use with gatsby v2 |
I pulled your test repository, there was no errors thrown. My node version is v8.10.0, it might be bc of that, would you be able to try changing the version of your node and see if it is about the node version? |
Some findings: If upgrade gatsby-plugin-sharp it breaks. Have to stay in 2.0.6 System: Conclusions: avoid node 11 for now and seems that sharp has a problem with newer versions of gatsby. |
There's an upstream issue with one of The workaround for now is to delete your For details, see: grpc/grpc-node#594 (comment). |
Description
When building for local development gatsby-transformer-sharp halts the process
Stack trace:
error Plugin gatsby-transformer-sharp returned an error
Error: dlopen(/Users/pedro/Projects/3Decide/int_alivevision_website/node_modules/gatsby-plugin-sharp/node_modules/sharp/build/Release/sharp.node, 1): Library not loaded: @rpath /libvips.42.dylib
Referenced from: /Users/pedro/Projects/3Decide/int_alivevision_website/node_modules/gatsby-plugin-sharp/node_modules/sharp/vendor/lib/libvips-cpp.42.dylib
Reason: Incompatible library version: libvips-cpp.dylib requires version 52.0.0 or later, but libvips.42.dylib provides version 51.0.0
Steps to reproduce
gatsby- starter-default download , install gatsby-transformer-sharp , gatsby-plugin-sharp and gatsby-image. With the environment below can't compile.
had to build from source grpc to install sharp (when installing the plugin), or else installation would fail.
Expected result
Should compile in development mode
Actual result
Compilation process breaks
Environment
System:
OS: macOS 10.14
CPU: x64 Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.0.0 - /usr/local/bin/node
npm: 6.4.1 - /usr/local/bin/npm
Browsers:
Chrome: 70.0.3538.77
Firefox: 60.0.2
Safari: 12.0
npmPackages:
gatsby: 2.0.0 => 2.0.0
gatsby-image: ^2.0.19 => 2.0.19
gatsby-plugin-manifest: 2.0.2 => 2.0.2
gatsby-plugin-offline: 2.0.5 => 2.0.5
gatsby-plugin-react-helmet: 3.0.0 => 3.0.0
gatsby-plugin-sass: 2.0.1 => 2.0.1
gatsby-plugin-sharp: ^2.0.11 => 2.0.11
gatsby-plugin-typography: ^2.2.0 => 2.2.0
gatsby-source-filesystem: 2.0.1 => 2.0.1
gatsby-transformer-json: 2.1.2 => 2.1.2
gatsby-transformer-remark: 2.1.3 => 2.1.3
gatsby-transformer-sharp: ^2.1.7 => 2.1.7
npmGlobalPackages:
gatsby-cli: 2.4.4
The text was updated successfully, but these errors were encountered: