frida-compile icon indicating copy to clipboard operation
frida-compile copied to clipboard

Cannot find name 'console'

Open AndroidMaster25 opened this issue 6 months ago • 0 comments

I'm getting error trying to compile frida-il2cpp-bridge from this example https://github.com/vfsfitvnm/frida-il2cpp-bridge/blob/v0.12.0/example/index.ts using npx frida-compile index.ts -o index.js. If I remove console.log, it will compile. I swear it was working on previos version or something I don't know

/index.ts (5,5): Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
Error: compilation failed
    at Module.build (file:///F:/xxx/node_modules/frida-compile/dist/compiler.js:34:15)
    at main (file:///F:/xxx/node_modules/frida-compile/dist/cli.js:37:33)
    at file:///F:/xxx/node_modules/frida-compile/dist/cli.js:57:5
    at ModuleJob.run (node:internal/modules/esm/module_job:274:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:644:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)

AndroidMaster25 avatar Jun 17 '25 18:06 AndroidMaster25