Skip to content

Repository files navigation

Trigger.dev + Sharp 0.35 reproduction

Minimal reproduction for a Trigger.dev 4.5.9 local-development failure with Sharp 0.35.3.

Environment

  • Node.js 24.13.0
  • pnpm 11.10.0
  • Trigger.dev 4.5.9
  • Sharp 0.35.3
  • macOS arm64

Reproduce

  1. Install dependencies:

    pnpm install
  2. Set a Trigger.dev project ref:

    export TRIGGER_PROJECT_REF=proj_your_project_ref
  3. Authenticate with Trigger.dev if needed, then start local development:

    pnpm dev

Expected

The local worker indexes sharp-metadata-repro and becomes ready.

Actual

Trigger.dev auto-detects Sharp as an external package and creates the generated worker's node_modules/sharp symlink to Sharp's dist directory. Node then resolves the bare sharp import as sharp/index.js, which does not exist in Sharp 0.35, and the worker fails with ERR_MODULE_NOT_FOUND.

Controls

  • Pinning sharp to 0.34.5 allows the worker to start.
  • Setting build.autoDetectExternal to false also allows it to start, but disables automatic externalization for every native dependency.

About

Minimal reproduction for Trigger.dev 4.5.9 failing with Sharp 0.35

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages