You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I verified that the issue exists in Next.js canary release
Provide environment information
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 21.4.0: Mon Feb 14 22:26:24 PST 2022; root:xnu-8020.101.3~4/RELEASE_X86_64
Binaries:
Node: 17.6.0
npm: 8.5.2
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 12.1.0
react: 17.0.2
react-dom: 17.0.2
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Vercel
Describe the Bug
Local development to do API calls on pages/api works with wasm-pack packages works great, but when deployed on Vercel: the page returns: {"errno":-2,"code":"ENOENT","syscall":"open","path":"/var/task/.next/server/chunks/7645.wasm"}
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 21.4.0: Mon Feb 14 22:26:24 PST 2022; root:xnu-8020.101.3~4/RELEASE_X86_64
Binaries:
Node: 17.6.0
npm: 8.5.2
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 12.1.0
react: 17.0.2
react-dom: 17.0.2
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Vercel
Describe the Bug
Local development to do API calls on pages/api works with wasm-pack packages works great, but when deployed on Vercel: the page returns:
{"errno":-2,"code":"ENOENT","syscall":"open","path":"/var/task/.next/server/chunks/7645.wasm"}
Expected Behavior
My local API call looks like :
{"id":0,"width":50,"height":50,"pixels":[{"id":752,"is_blank":false,"r":255,"g":255,"b":255},{"id":3,"is_blank":true,"r":255,"g":255,"b":255},{"id":4,"is_blank":true,"r":255,"g":255,"b":255}...
and this is what I was expecting to see on Vercel.
To Reproduce
WASM patch from #29362
Rust WASM function created in rust-wasm using wasm-pack (you could probably do a simple return of a serde-json jsvalue in rust)
pages/api/image.js
The text was updated successfully, but these errors were encountered: