mesh icon indicating copy to clipboard operation
mesh copied to clipboard

Error: ENOENT: no such file or directory, open '...\.next\server\chunks\cardano_serialization_lib_bg.wasm'

Open nguyenvuhoang opened this issue 1 year ago • 6 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

nguyenvuhoang avatar Dec 19 '23 03:12 nguyenvuhoang

Hello Everyone

nguyenvuhoang avatar Dec 20 '23 04:12 nguyenvuhoang

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 : https://github.com/vercel/next.js/issues/55537

atrhacker avatar Dec 20 '23 15:12 atrhacker

Actually, i have read this https://github.com/vercel/next.js/issues/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 avatar Dec 22 '23 04:12 nguyenvuhoang

@nguyenvuhoang are you using the app directory (a feature introduced with next 13)?

chrissiwaffler avatar Feb 01 '24 14:02 chrissiwaffler

@nguyenvuhoang are you using the app directory (a feature introduced with next 13)?

Yes we're using App Directory (Upgrade to Next 14)

nguyenvuhoang avatar Feb 27 '24 02:02 nguyenvuhoang

@nguyenvuhoang if the error still occurs at your end, you might want to look into my this answer: https://github.com/MeshJS/mesh/pull/152#issuecomment-1708656146 It's a workaround which solved my own issue, and might help you as well.

chrissiwaffler avatar Feb 27 '24 14:02 chrissiwaffler

Packaging has been refactored entirely since version V1.6, please re-open if issue persists

HinsonSIDAN avatar Aug 16 '24 07:08 HinsonSIDAN