laverdet / isolated-vm

Secure & isolated JS environments for nodejs
ISC License
2.19k stars 154 forks source link

Next.js: `new ivm.Isolate()` aborts the whole application without errors #472

Closed baptisteArno closed 6 months ago

baptisteArno commented 6 months ago

On a brand new Next.js application, simply calling new ivm.Isolate() crashes the application without any error in the logs.

Reproduction: https://github.com/baptisteArno/nextjs-isolated-vm-crash

How can we debug this further?

laverdet commented 6 months ago

cmd+f readme for 🚨

laverdet commented 6 months ago

You need to pass --no-node-snapshot.

baptisteArno commented 6 months ago

So sorry I overlooked this 🙏

Thanks so much!