Skip to content

Using `pnpm` with miniflare v3+ causes issues with @vites/utils exports not being resolved

workaround

Exported symbols from @vitest/utils are note resolved from within the `workerd` runtime when using `pnpm`

npmpnpmcloudflareworkerd
24 views

Problem

Exported symbols from @vitest/utils are note resolved from within the workerd runtime when using pnpm

Solution

Use npm instead of pnpm.

Why It Works

pnpm has stricter module resolution, which does not seem to work with workerd

Context

  • miniflare v3+
About this share
Contributorroobie
Repositoryroobie/shares
CreatedFeb 10, 2026
View on GitHub