You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing @astrojs/image with the sharp integration, my project won't build. Without the sharp integration it builds fine.
I tried running pnpm rebuild sharp to no avail.
Below are steps for a manual reproduction. The stackblitz repro fails as well but with a different stack trace: Something went wrong installing the "sharp" module...
EDIT: I see now that StackBlitz doesn't support sharp:
The @astrojs/image default image transformer is based on Squoosh and uses WebAssembly libraries to support most deployment environments, including those that do not support sharp, such as StackBlitz
❯ pnpm dev
> <package>@0.0.1 dev <project_root>
> astro dev
dyld: lazy symbol binding failed: Symbol not found: _pthread_jit_write_protect_supported_np
Referenced from: <project_root>/node_modules/.pnpm/sharp@0.31.3/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: <project_root>/node_modules/.pnpm/sharp@0.31.3/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
Expected in: /usr/lib/libSystem.B.dylib
ELIFECYCLE Command failed.
zsh: abort pnpm dev
What version of
astro
are you using?2.0.16
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Mac
Describe the Bug
After installing
@astrojs/image
with the sharp integration, my project won't build. Without the sharp integration it builds fine.I tried running
pnpm rebuild sharp
to no avail.Below are steps for a manual reproduction. The stackblitz repro fails as well but with a different stack trace:
Something went wrong installing the "sharp" module...
EDIT: I see now that StackBlitz doesn't support
sharp
:Steps taken
Installed with
image
andsharp
Configured
astro.config.mjs
Configured
src/env.d.ts
/// <reference types="@astrojs/image/client" />
Stack trace on
pnpm dev
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-q3m5h1
Participation
The text was updated successfully, but these errors were encountered: