Error trying to create new BrowserWindow
See original GitHub issuePrerequisites
- Using yarn
- Using node 10.x
- Using an up-to-date
masterbranch - Using latest version of devtools. See wiki for howto update
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
- Node version : 12.18.0
- Version or Branch used : 1.2.0
- Operating System and version : Windows 10 1909
- Link to your project : https://github.com/AndreoliBR/projekt-emerald
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:8 (1 by maintainers)

Top Related StackOverflow Question
Using
HashRouterinstead ofBrowserRoutersolved it for me.I don’t use redux, and I have this problem doing a CMD+R after navigating to a different route…