5

I am new to react. My app created with create-react-app is not refreshing automatically.

I created .env file in main directory but still no luck.

.env

FAST_REFRESH=false

Package.json:

    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-scripts": "4.0.3",

1 Answer 1

1

You could look into this issue : https://github.com/facebook/create-react-app/issues/9913

or this one https://github.com/facebook/create-react-app/pull/9884

One of the way of doing it is starting the app like so :

FAST_REFRESH=false yarn start

or

FAST_REFRESH=false npm start
1
  • Thanks It was working fine.
    – Dev G
    Commented Oct 17, 2021 at 12:36

Not the answer you're looking for? Browse other questions tagged or ask your own question.