question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Build error with sharp on workspaces

See original GitHub issue

I have a project with dependency to sharp 0.26.1 through another dependency. When I try to install the project it fails with sharp@npm:0.26.1 must be built because it never did before or the last one failed. Checking the build errors the error is fatal error C1083: Cannot open include file: 'vips/intl.h': No such file or directory. Same build works with yarn1 and npm. The possible fixes listed on sharps github issues didnt help.

Installing sharp on yarn1 and then copying the build to node_modules/sharp manually makes everything work also.

Minimal project to reproduce the issue can be found here: https://drive.google.com/file/d/1sjHMp_xtoH4BCd3_P3k_9DjtgKUI9RZC/view?usp=sharing

Taking the test package out of workspace structure and running ‘yarn’ (yarn1) or ‘npm i’ works without a problem.

Environment if relevant (please complete the following information):

  • OS: linux, windows, osx
  • Node version 14.15.0, 12.18.3, 12.18.2
  • Yarn version 2.3.3, example package has specific commit but error appears on both

If this sounds more like a problem on the sharp side, please let me know and I’ll ask there.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
arcaniscommented, Nov 10, 2020

Building sharp 0.26.1 here fails with vips/vips8: No such file or directory (different error than yours), but works with 0.26.2.

0reactions
arcaniscommented, Nov 10, 2020

Good to hear 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

[bug]: sharp and image processing failures #10841 - GitHub
Description In this issue, I'd like to collect any issues others have run into regarding image processing failures with Gatsby.
Read more >
Troubleshoot WorkSpace creation failures - Amazon AWS
I want to create a new WorkSpace with Amazon WorkSpaces, but the process is failing. Why is this happening, and how can I...
Read more >
Arrays of References - Learn C# - Bug Reporting
Arrays of References ... Step 3 will pass with this code, but throw this error in log. ... The build failed. Please fix...
Read more >
Amazon WorkSpaces Application License Agreement
Install the Amazon WorkSpaces Client for Linux with a few easy steps, ... OR THAT THE PRODUCTS ARE BUG FREE OR THAT THE...
Read more >
Bug listing with status RESOLVED with resolution UPSTREAM ...
... Bug:34450 - "gentoo-dev-sources-2.6.0_beta10-r1 error building drivers/ide/pci/cmd640.o" status:RESOLVED resolution:UPSTREAM severity:blocker ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found