codeapp
codeapp copied to clipboard
[v1.2.13][Nodejs]ReferenceError: WebAssembly is not defined while running webpack
please see the detail below

WebAssembly is unavailable in iOS's Node.js because of the absence of JIT support. Does your code call WebAssembly anywhere?
WebAssembly is unavailable in iOS's Node.js because of the absence of JIT support. Does your code call WebAssembly anywhere?
no,just run webpack command,outcome this error
Looks like webpack calls WebAssembly.Module in one of its functions. We need a way to disable that behaviour.
Specify this in package.json: webpack-cli: "3.3.12". It's a workaround.
i'm working on replacing WebAssembly of webpack
Hello, i found a way in webpack's doc webpack output.hashFunction
Finally worked!
Great! Congrats 👏
I will make sure to document this somewhere.
On Fri, 15 Apr 2022 at 22:55, Fitzz @.***> wrote:
[image: 6ED65C60-76C3-4C14-B932-07D216AA55CD] https://user-images.githubusercontent.com/8213998/163585928-0df9a435-b823-44fc-b2e7-b0c8395fc766.png Finally worked!
— Reply to this email directly, view it on GitHub https://github.com/thebaselab/codeapp/issues/408#issuecomment-1100157181, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJE6T222GLW2SWGKJ4M335DVFF7NRANCNFSM5SXZZSBA . You are receiving this because you commented.Message ID: @.***>
Here’s my two cents. WebAssembly shouldn’t - and isn’t - intended to work on iOS/iPadOS devices, so this is odd that it worked.
Here’s my two cents. WebAssembly shouldn’t - and isn’t - intended to work on iOS/iPadOS devices, so this is odd that it worked.
There is a hash function in webpack that uses webassembly. Turns out there is a way to override it with a custom implementation. The method is shown by the op.
Here’s my two cents. WebAssembly shouldn’t - and isn’t - intended to work on iOS/iPadOS devices, so this is odd that it worked.
There is a hash function in webpack that uses webassembly. Turns out there is a way to override it with a custom implementation. The method is shown by the op.
My bad, must’ve missed that. Usually WebAssembly does not work on iOS and iPadOS devices, which is why I said that. Thanks for letting me know!