Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] devtools can not open #369

Open
han8435762 opened this issue Apr 12, 2023 · 6 comments
Open

[Bug] devtools can not open #369

han8435762 opened this issue Apr 12, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@han8435762
Copy link

han8435762 commented Apr 12, 2023

devtools can not open when I load big data from nedb

replace main/index.js

win.loadURL(url)

to

await win.loadURL(url)

can work normally

@han8435762 han8435762 added the bug Something isn't working label Apr 12, 2023
@caoxiemeihao
Copy link
Member

Can provide a minimal reproduction repo?

@simon-lorenz
Copy link

I noticed the same issue while using knex and created a minimal reproduction repository here. Just run:

git clone https://github.com/simon-lorenz/electron-vite-project-repro-369.git
cd electron-vite-project-repro-369
npm install
npm run dev

I created this repository with npm create electron-vite. The fix by @han8435762 works for me too.

I've also noticed something very odd: On my machine, the bug seems to depend on the location of the repository. For example, if I clone into /tmp/electron-vite-project-repro-369, the developer tools appear normally. If I clone into ~/Desktop/electron-vite-project-repro-369, the tools disappear. I know it sounds far fetched but I could observe this behaviour on two different machines (although both run the same OS).

Node: v18.14.2
NPM: 9.5.0
OS: Ubuntu 22.04

@caoxiemeihao
Copy link
Member

caoxiemeihao commented Apr 26, 2023

I noticed the same issue while using knex and created a minimal reproduction repository here. Just run:

I tested it locally and can open Devtools but it's slow!

@so1ve
Copy link

so1ve commented Jun 6, 2023

I think the reason of slowness is loading the webpage takes lots of time. Just create a page that contains many imports of untransfoemed modules and load it. Ref: https://github.com/so1ve/unml/tree/work

@anyaoqi
Copy link

anyaoqi commented Jul 19, 2023

I also encountered the same problem. If I open both mysql and sqlite, devtools cannot be opened. But if only one of them is turned on, there is no problem

@caoxiemeihao
Copy link
Member

@anyaoqi recommend use sqlite in Main process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants