Common Errors
isolated-vm
If you see errors like
- isolated_vm.node: undefined symbol: _ZNK2v815ValueSerializer8Delegate20SupportsSharedValuesEv
- ERR_DLOPEN_FAILED
- Segmentation fault
it most likely means that the Node.js version you are using is not compatible with the isolated-vm package. This can also happen if you upgrade Node.js after installing webcrack. See Requirements for the supported Node.js versions.
A possibly fix is to run npm rebuild isolated-vm in your project directory or delete the node_modules/isolated-vm directory and run npm install again.
For Node 20.x and above, disabling snapshots may be necessary:
set NODE_OPTIONS=--no-node-snapshot
webcrack input.jsNODE_OPTIONS=--no-node-snapshot webcrack input.jsor
node --no-node-snapshot your-script.jsFor any other issues, please refer to the isolated-vm readme.
Cannot Find Module
Error: Cannot find module './out/isolated_vm'
This error may happen when using pnpm 10 or later, because it does not run the postinstall script by default to build or download the native modules of isolated-vm.
To fix this, re-run the install command with --allow-build=isolated-vm --force added or see the pnpm 10 changelog.
Heap Out Of Memory
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Fix by running node with the --max-old-space-size flag. For example:
set NODE_OPTIONS=--max-old-space-size=8192 && webcrack bundle.jsNODE_OPTIONS="--max-old-space-size=8192" webcrack bundle.jsor
node --max-old-space-size=8192 your-script.js__DECODE_0__
If this appears in your code, the deobfuscator failed to decode a string from the string array. This can happen in forked javascript-obfuscator versions or when Dead Code Injection is enabled.
Open an issue if you encounter this.
