Error: ENOENT: no such file or directory, open '...\.next\server\chunks\cardano_serialization_lib_bg.wasm'
nguyenvuhoang opened this issue · comments
Dear All
When we're build the application, but it show one message "**Error: ENOENT: no such file or directory, open '...\.next\server\chunks\cardano_serialization_lib_bg.wasm**'"
Could you help me
Hello Everyone
Same issue here.
In my case it's not working withtt the latest version from next.js (14.0.4) and the app router.
Potentially linked to the following : vercel/next.js#55537
Actually, i have read this vercel/next.js#55537 but i see it seem error from version of Webpack 5 isn't detecting correctly the wasm dependency.
Do you have any recommend for this case?
@nguyenvuhoang are you using the app directory (a feature introduced with next 13)?
@nguyenvuhoang are you using the app directory (a feature introduced with next 13)?
Yes we're using App Directory (Upgrade to Next 14)
@nguyenvuhoang
if the error still occurs at your end, you might want to look into my this answer: #152 (comment)
It's a workaround which solved my own issue, and might help you as well.