Development server of create-react-app does not auto refresh

后端 未结 17 1543
清酒与你
清酒与你 2020-12-01 07:30

I am following a tutorial on React using create-react-app. The application is created by create-react-app v1.3.0

create-react-app my-app

T

17条回答
  •  伪装坚强ぢ
    2020-12-01 07:51

    Find your index.js and change something in this file, for example add a white space, then save. It should show "compiling..." in your console.

    Then you can modify other files and react will refresh on save.

    It seems that npm is looking for changes in the index.js at the very first time, if you refactor your folder structure the index.js could be missed. Force an update in index.js file get the problem solved.

    At least this has worked to me

提交回复
热议问题