Skip to content

VSCode : doesn't detect changes #2988

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pierre-H opened this issue Aug 21, 2017 · 4 comments
Closed

VSCode : doesn't detect changes #2988

pierre-H opened this issue Aug 21, 2017 · 4 comments

Comments

@pierre-H
Copy link

Is this a bug report?

Yes

Can you also reproduce the problem with npm 4.x?

Yes

Which terms did you search for in User Guide?

I tried https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-start-doesnt-detect-changes

Environment

  1. node -v: 8.4.0
  2. npm -v: 5.3.0
  3. yarn --version (if you use Yarn): 0.27.5
  4. npm ls react-scripts (if you haven’t ejected):

Then, specify:

  1. Operating system: Windows 7 32bits
  2. Editor : vs code 1.15.1

Steps to Reproduce

  1. Just created a new project with create-react-app
  2. yarn start
  3. edit a file (index.js for example)

Expected Behavior

When I edit and save a file with vs code, it should reload the server automatically.

Actual Behavior

Doesn't do anything : I have to restart yarn start.

But if I use another editor like Notepad++, it works perfectly

@Timer
Copy link
Contributor

Timer commented Aug 21, 2017

Odd; have you followed our Troubleshooting guide for this specific problem?

I don't believe VSCode has added "safe write", so I'm not sure what is unique about your environment.

@pierre-H
Copy link
Author

@Timer yes I followed it and no result.

@Timer
Copy link
Contributor

Timer commented Aug 21, 2017

Unfortunately there's nothing we can do to help, this is a system problem as you said it works with other text editors.

Please file a bug with VSCode, who might then redirect you to Node.

For now, you can set CHOKIDAR_USEPOLLING=true and it should get you up and running. I wouldn't rely on this forever, though.

Good luck!

@pierre-H
Copy link
Author

After investigation, yarn is the problem origin : wmonk/create-react-app-typescript#148

@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants