ceifa / wasmoon

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

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

Closed lontrr closed 2 months ago

lontrr commented 3 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 2 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.