kvnang/workers-og

Unknown file extension ".wasm" for /Users/me/project/node_modules/workers-og/dist/yoga-ZMNYPE6Z.wasm

bitofbreeze opened this issue · 3 comments

Getting this error

at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:160:9)
at defaultGetFormat (node:internal/modules/esm/get_format:203:36)
at defaultLoad (node:internal/modules/esm/load:143:22)
at async ModuleLoader.load (node:internal/modules/esm/loader:403:7)
at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:285:45

while using this with Remix Vite

Same issue here. I'm curious if anyone has gotten this set up working in Remix Vite?

Ended up writing a Vite plugin to get things working on Vite, Remix, and Cloudflare: https://github.com/superhighfives/vite-plugin-wasm-module-workers/ Just in case anyone else is trying to get this to work.

Same issue with Astro SSR which using Vite inside.