[Bug] Build error with sharp on workspaces
See original GitHub issueI 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:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Building
sharp
0.26.1 here fails withvips/vips8: No such file or directory
(different error than yours), but works with 0.26.2.Good to hear 👍