denoland / denoland/deploy_feedback

[Bug]: sharp doesn't work in deno dploy

Open
#626 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
79
Forks
5
PR merge metrics
No merged PRs in 30d

Description

### Problem description

Sharp works fine locally, but on deploy it seems to be trying to find linux-x64 version and crashes.

### Steps to reproduce

https://dash.deno.com/playground/useful-clam-72 -- it crashes with `Error: Could not load the "sharp" module using the linux-x64 runtime`. But if you run the same code locally (`deno run --allow-ffi --allow-net server.ts`) then it works fine.

### Expected behavior

Works fine like it does locally. Not sure if this is a bug or just not supported 👀 Is there a workaround for this?

### Environment

deno 1.40.2 (release, aarch64-apple-darwin)
v8 12.1.285.6
typescript 5.3.3

ProductName: macOS
ProductVersion: 14.3.1
BuildVersion: 23D60

### Possible solution

_No response_

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked Deno Deploy playground and reproduce the failure using the provided sharp example. Compare the deployed runtime with the local command and investigate whether Deno Deploy supports sharp's linux-x64 native module. Done means confirming the support status and documenting a verified workaround or the missing platform requirement.

Written by the indexing model from the issue text.

Assessment

Tech stack
deno
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.