You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Running atom from the command line can un-set process.env.NODE_DEV, causing performance degradation & JS crashes #12024
) This improves the speed of React by disabling its debug mode.
But if Atom is already running, and already has file.txt open, and one runs atom file.txt from the command line, the command line's environment is used to overwrite Atom's current process.env. Most people don't have NODE_DEV set in their environment, so React falls back to its slow debug mode.
The code responsible for "cloning" the environment is
If React starts in production mode, it won't create some key debugging data structures. If it later changes to dev mode (because process.env.NODE_DEV becomes undefined), it will try to access those structures and crash.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
winstliu commentedon Jun 22, 2016
/cc @lee-dohm
ggreer commentedon Jun 22, 2016
Just FYI, I'll probably make a PR for this today.
Don't erase NODE_ENV from environment. Atom sets this to 'production'…
Don't erase NODE_ENV from environment. Atom sets this to 'production'…
lock commentedon Apr 6, 2018
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!