electron-as-browser icon indicating copy to clipboard operation
electron-as-browser copied to clipboard

Debug value and errors

Open ghost opened this issue 2 years ago • 2 comments

Setting debug to false in order to prevent the dev tools window from popping up results in getting a blank page.

Is there a way to disable the dev tools window popping up?

I am also getting the following errors upon start in the console:

(node:517563) UnhandledPromiseRejectionWarning: Error: An object could not be cloned.
    at EventEmitter.t.ipcRendererInternal.send (node:electron/js2c/renderer_init:85:328)
    at EventEmitter.<anonymous> (node:electron/js2c/renderer_init:81:357)
(Use `electron --trace-warnings ...` to show where the warning was created)
(node:517563) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

ghost avatar Feb 23 '22 18:02 ghost

In the console, an error happens, where app fails to get a file.

image

This compiled file could be generated with

npm run start:control

After that, run npm start.

hailiang-wang avatar Jul 12 '22 12:07 hailiang-wang

Same here. It doesn't work without debug mode.

One interesting thing is: it works if I maximize the blank screen.

PS:

It's happening only in windows. Mac is ok.

samuelfaj avatar Oct 28 '23 04:10 samuelfaj