Skip to content
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

App dev server does not recompile on changes #908

Closed
StevePavlin opened this issue Oct 15, 2016 · 5 comments
Closed

App dev server does not recompile on changes #908

StevePavlin opened this issue Oct 15, 2016 · 5 comments

Comments

@StevePavlin
Copy link

StevePavlin commented Oct 15, 2016

If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.

Description

What are you reporting?
The app dev server does not recompile on changes.

Expected behavior

Tell us what you think should happen.
The app dev server should restart.

Actual behavior

Tell us what actually happens.
It does not compile.

Environment

Run these commands in the project folder and fill in their results:

  1. npm ls react-scripts (if you haven’t ejected): `-- react-scripts@0.6.1
  2. node -v: v4.4.4
  3. npm -v: 3.10.5

Then, specify:

  1. Operating system: Windows 10 64 Bit
  2. Browser and version: Google Chrome 53

Reproducible Demo

Please take the time to create a new app that reproduces the issue.

Alternatively, you could copy your app that experiences the problem and start removing things until you’re left with the minimal reproducible demo.

(Accidentally, you might get to the root of your problem during that process.)

Push to GitHub and paste the link here.

By doing this, you're helping the Create React App contributors a big time!
Demonstrable issues gets fixed faster.

This is not required because I am using the exact fresh build from create-react-app {name}. Here is a demo: https://i.gyazo.com/3d097648393810af1079a7c40915596b.gif

@gaearon
Copy link
Contributor

gaearon commented Oct 15, 2016

Does this help?
#659 (comment)

Try disabling "safe write" feature.

@gaearon
Copy link
Contributor

gaearon commented Oct 15, 2016

cc @prigara, can/does IntelliJ disable "safe write" by default in React projects?

@prigara
Copy link
Contributor

prigara commented Oct 17, 2016

@gaearon no, we can't disable that for React projects only – it's an IDE general setting. It seems that dev server works good with "safe write" enabled on macOS. On Windows it works not very stable, but still works, disabling "safe write" helps.
To be honest, I'm not sure we can do much on our side – it's the question of dev server's file watcher implementation on Windows.

@gaearon
Copy link
Contributor

gaearon commented Nov 20, 2016

Going to close in favor of #659. There are a few possible reasons why this might be happening, let's keep accumulating the knowledge there.

@gaearon gaearon closed this as completed Nov 20, 2016
@tianhuil
Copy link

Might also be because you are not importing the file in question: wmonk/create-react-app-typescript#228 (comment)

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

No branches or pull requests

4 participants