ceifa / wasmoon

A real lua 5.4 VM with JS bindings made with webassembly
MIT License
496 stars 32 forks source link

Error: __webpack_require__(...).pathToFilrUrl is not a function #120

Closed lontrr closed 3 months ago

lontrr commented 4 months ago

I'm using nextjs 14.2.3 and whenever we import wasmoon we get this error

image

The error is in the following line: image

ceifa commented 3 months ago

This only happens when using edge runtime. Wasmoon in bundled as UMD using rollup, and because edge is a special case (not node and not browser), it can't be executed correctly. I think this is more an issue on nextjs or rollup than wasmoon.