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
Uncaught Error: Could not load the "sharp" module using the linux-x64 runtime #3911
Comments
The PR appears to be updating multiple packages to sharp 0.33.1 from both 0.32.6 and 0.33.0. I can see there are still entries for 0.33.0 in the lockfile after the update so please can you ensure the lockfile has been regenerated properly. It looks like you're using a cached |
Thank you for your reply Lovell I have updated the lockfile, although this did not do any visible improvements. |
This comment was marked as off-topic.
This comment was marked as off-topic.
1 similar comment
This comment was marked as off-topic.
This comment was marked as off-topic.
Seems like bumping all monorepo packages to v0.33.0 first did the trick and now the CI succeeds: https://github.com/appium/appium/actions/runs/7304747517/job/19907366251 Thanks for your help @lovell |
Sorry for the slightly off topic comment. I'm wondering what version of Sharp bumped the minimum We're facing this same issue and I'm happy to open an issue, but if Yarn 1.22 isn't supported I won't waste anyone's time with it. I'm just wondering when this change occurred since I was hoping to upgrade to fix this issue: expo/eas-cli#1728 (Of course I'm happy to upgrade Yarn too, but I'm already 4 problems deep at the moment and don't want to be changing more variables.) |
@slapbox There are many reasons to stop using yarn v1 but if you have no other choice then it requires an additional flag to install an increasing number of native modules, including sharp v0.33.0+. https://sharp.pixelplumbing.com/install
|
This is an old, closed ticket, but shouldn't a breaking change like this bump the package to a new major version? |
For a pre-v1 package it's totally normal to do minor version bumps for breaking changes. |
Possible install-time or require-time problem
You must confirm both of these before continuing.
Are you using the latest version of sharp?
sharp
as reported bynpm view sharp dist-tags.latest
.If you cannot confirm this, please upgrade to the latest version and try again before opening an issue.
If you are using another package which depends on a version of
sharp
that is not the latest,please open an issue against that package instead.
Are you using a supported runtime?
^18.17.0 || ^20.3.0 || >=21.0.0
If you cannot confirm any of these,
please upgrade to the latest version
and try again before opening an issue.
Are you using a supported package manager and installing optional dependencies?
--include=optional
--no-optional=false
If you cannot confirm any of these, please upgrade to the latest version of your chosen package manager
and ensure you are allowing the installation of optional or multi-platform dependencies before opening an issue.
What is the complete output of running
npm install --verbose --foreground-scripts sharp
in an empty directory?What is the output of running
npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?Unfortunately I cannot provide the output above as the script is running as part of CI job. Although this is the output we get after bumping sharp version to 0.33.1:
The link to the CI job: appium/appium#19547
Exactly the same CI script worked completely fine with version 0.33.0, so it seems like there is some regression in v. 0.33.1
The text was updated successfully, but these errors were encountered: