building with turbopack breaks the app if you're using sharp as a dependency #83230
dooart
started this conversation in
Turbopack Error Report
Replies: 1 comment
-
Interesting, are you using If you are using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
this started happening after i added the --turbopack flag to next build:
⨯ Error: Failed to load external module sharp: Error: Could not load the "sharp" module using the linux-x64 runtime
Possible solutions:
npm install --include=optional sharp
See https://sharp.pixelplumbing.com/install#cross-platform
npm install --os=linux --cpu=x64 sharp
removing the flag makes the problem go away
Beta Was this translation helpful? Give feedback.
All reactions