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.

No main window opened on MacOS

See original GitHub issue

Describe the bug After doing a clean checkout and install, npm run watch starts the Electron app, but no main window appears. The menu is visible, but no window is present.

This is on MacOS Monterey 12.2.

To Reproduce Steps to reproduce the behavior:

  1. Go to the main repo and clone it
  2. npm install
  3. npm run watch
  4. No window pops up

Additional context I thought it might be an issue with Electron 17, but reverting to an older commit (7d11dea480400e14d1b4b7f910ea8ab8f472b00d, just before the upgrade to Electron 17) has the same issue.

Running with ELECTRON_ENABLE_LOGGING=1 does not show any errors.

I do notice that there is no dist folder appearing in packages/renderer but that may be by design?

The example cloned from https://github.com/electron/electron-quick-start works fine, so it’s not a problem in Electron 17 itself, I guess.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cawa-93commented, Feb 8, 2022

I just tried it on Windows and see no problem. Maybe someone else on MakOS will be able to check and report it.

0reactions
sagacitycommented, Feb 9, 2022

Yes, exactly. I’ll try to see if I can reproduce and then report to Vite upstream.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cant open any existing windows? - Apple Support Communities
We understand you're experiencing an issue with windows not showing up for open apps intermittently. First, if you haven't already, restart your ...
Read more >
[OS X] Unable to display main window once it's closed #51
Open electron-mattermost on OS X; Click on the red close button of said main window. Now the application is hidden but still running...
Read more >
[solved] Mac: Apple Mail main window does not appear at ...
If the main Apple Mail window does not open when the program starts, these instructions will help you resolve the problem.
Read more >
macOS: Bring Off-Screen Window Back Onto Screen
Fix 1 – Zoom. Select the application in the dock, then choose “Window” > “Zoom“.
Read more >
MacOS Sierra, app is running but has no window - Ask Different
I had an app called "Gitbox" on my Mac for 4 years with no problems. App suddenly does not display it's main window...
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