Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #3706
Closed
Open
Issue created Jan 08, 2018 by Administrator@rootContributor

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.

image image

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.

Assignee
Assign to
Time tracking