Vue Build fails - UnhandledPromiseRejectionWarning: RangeError: WebAssembly.Instance():

Viewed 10

I'm trying to build my vue2 app on my vps, but whenever I run the command

npm run build --- --mode=testing

I get the following error:

Building for testing...(node:82634) UnhandledPromiseRejectionWarning: RangeError: WebAssembly.Instance(): Out of memory: wasm memory

The weird thing is that it works on my local computer.

I tried to change the max_old_space_size up to 20GB but that doesn't do the trick.

I can provide more information but I don't know what's relevant for my question.

0 Answers
Related