How to prevent REACT_EDITOR from opening when application crashes in development?
Created by: k1sul1
Is this a bug report?
Not really.
Which terms did you search for in User Guide?
REACT_EDITOR, editor
I'm using Vim as my editor, which is highly relevant to the problem I'm having. When my application crashes and presents me with an error screen, and I happen to click on the code displayed, the terminal which is running npm run start
tries to open the file in Vim.
I do not want this to ever happen, because the terminal that the watch process runs in is tiny, the Vim instance it launches isn't even running my Vim config, and when I exit the instance, the output of npm run start
is often ruined (line breaks break, everything just goes full word wrap) until I restart the watcher. Lint errors and so on pretty much become unreadable.
While the feature probably is useful if you use an editor like VS Code, it grinds gears for users like me ;)
I tried setting REACT_EDITOR as false in .env, but it didn't work.
TL;DR: I want that npm run start
only ever displays me build errors and warnings, and does not run any interactive programs.