hulufei / electron-as-browser

Make electron like browser easy and flexible.
MIT License
185 stars 43 forks source link

Debug value and errors #18

Open ghost opened 2 years ago

ghost commented 2 years ago

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)
hailiang-wang commented 2 years ago

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.

samuelfaj commented 12 months ago

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.