electron-as-browser
electron-as-browser copied to clipboard
Debug value and errors
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)
In the console, an error happens, where app fails to get a file.
This compiled file could be generated with
npm run start:control
After that, run npm start
.
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.