[GH-ISSUE #642] vinext start fails with ERR_MODULE_NOT_FOUND for Yoga WASM (next/og) #134

Closed
opened 2026-05-06 12:37:29 +02:00 by BreizhHardware · 0 comments

Originally created by @NathanDrake2406 on GitHub (Mar 22, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/642

Summary

vinext build + vinext start crashes at startup when the app uses ImageResponse from next/og.

Error

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'a' imported from
  /path/to/dist/server/assets/yoga-sbSbVeWy.wasm

Context

The Yoga WASM file (used by Satori for OG image generation) is emitted into dist/server/assets/ during build, but contains a minified import reference ('a') that wasn't resolved during bundling. Node can't resolve it at runtime.

The app imports ImageResponse from next/og in several opengraph-image.tsx files.

Steps

  1. Add an opengraph-image.tsx that uses ImageResponse from next/og
  2. vinext build
  3. vinext start
  4. Crashes immediately with the above error
Originally created by @NathanDrake2406 on GitHub (Mar 22, 2026). Original GitHub issue: https://github.com/cloudflare/vinext/issues/642 ## Summary `vinext build` + `vinext start` crashes at startup when the app uses `ImageResponse` from `next/og`. ## Error ``` Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'a' imported from /path/to/dist/server/assets/yoga-sbSbVeWy.wasm ``` ## Context The Yoga WASM file (used by Satori for OG image generation) is emitted into `dist/server/assets/` during build, but contains a minified import reference (`'a'`) that wasn't resolved during bundling. Node can't resolve it at runtime. The app imports `ImageResponse` from `next/og` in several `opengraph-image.tsx` files. ## Steps 1. Add an `opengraph-image.tsx` that uses `ImageResponse` from `next/og` 2. `vinext build` 3. `vinext start` 4. Crashes immediately with the above error
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#134
No description provided.