question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error trying to create new BrowserWindow

See original GitHub issue

Prerequisites

Expected Behavior

I’m trying to open a new BrowserWindow from component when the app fully loads. The component that tries to load the BrowserWindow is aimed to be like Discord Splash (when you open the app and it waits until the app is updated and fully loaded).

Current Behavior

The splash component is loading normally and then I call the useEffect hook to create and load the new window. But when the hook is called and the new BrowserWindow is called, the window turns blank and the following log shows up on cmd: [13760:0714/113839.895:ERROR:CONSOLE(216)] "Extension server error: Operation failed: Permission denied", source: devtools://devtools/bundled/extensions/extensions.js (216). I have already changed Routes.tsx and routes.json to add the new window component, and the dir I used in the func newWindow.loadURL() is file://${__dirname}/app.html/setup, as described in routes.json, "SETUPASSISTANT": "/setup"

Possible Solution

This issue might be related to this issue

Your Environment

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

71reactions
ivanms1commented, Jan 25, 2021

Using HashRouter instead of BrowserRouter solved it for me.

3reactions
ajbtechservicescommented, Jan 17, 2021

I don’t use redux, and I have this problem doing a CMD+R after navigating to a different route…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Cannot create BrowserWindow before app is ready ...
This is by design. A browser window can only be created once the app is "ready". Try this instead: app.
Read more >
Electron JS Error: Cannot create BrowserWindow before app ...
I am using jQuery within electronJS project. I wrote simple code which opens a browsing window without any element
Read more >
BrowserWindow | Electron
Create and control browser windows. Process: Main. BrowserWindow is an EventEmitter. It creates a new BrowserWindow with native properties as set by the...
Read more >
Turn cookies on or off - Computer - Google Account Help
If you still get the error message, here are some possible solutions. Try each one, then try signing in. Open a new browser...
Read more >
Error trying to create a subscription on an online meeting with ...
This all works fine as long as the user has logged into their MS account in the browser window. We're now trying to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found