Next.js Discord

Discord Forum

Hot Reload on OS X Stealing Focus?

Unanswered
Australian Freshwater Crocodile posted this in #help-forum
Open in Discord
Australian Freshwater CrocodileOP
I'm using Safari + VSCode to develop with Next.js.

Anytime next compiles and attempts to do a HMR with code that has an error, it makes Safari steal focus from VSCode and is disruptive to developing.

I attached a screen grab of me replicating hte bug.

Steps to Replicate:
1. Have a working project and npm run dev
2. Open in Safari and allow it to load successfully 1 time
3. Introduce some error into the code
4. Safari pulls focus from editor unexpectedly

2 Replies

Australian Freshwater CrocodileOP
Any help with this? It has gotten bad enough I've had to stop working tonight. Safari attempts to steal focus repeatedly.
Australian Freshwater CrocodileOP
Has anyone else experienced this? I'm surely not the only one using Next.js on MacOS w/ Safari