-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Hot reload doesn't work #50
Comments
Did you try this one https://github.com/gaearon/react-hot-loader ? |
@NeekSandhu Yes I know that project. But for that I will need to eject :( |
Well a fragile and dirty way would be go inside A better solution would be to fork
|
I would advise against ejecting to use Hot reloading is currently blocked by some trivial project bugs and a bug in chrome, but coming soon: facebook/create-react-app#2304. We're hopefully also adding support for TypeScript soon, so users no longer need to use the community-maintained |
Thanks @Timer for clarification. Looking forward to get the TS support soon 👍 |
@Timer Found the solution. I replaced ts-loader with awesome-typescript-loader and hot reloading works now. I had to eject to debug/try things. I will use https://github.com/timarney/react-app-rewired to customize my project to use awesome-typescript-loader without ejecting. 👍 |
Sounds good, @nikhilkh! While we don't promise
This is good to hear! We chose |
Any updates on integrating hot module reloading into the create-react-app? Thanks. |
Agreed @VRspace4. Is this something we should see implemented soon? |
Hot reload works properly with just create-react-app but doesn't work with react-scripts-ts.
I have included following in index.tsx
Since I am using create-react-app that uses webpack-2, I have tried following also:
But still it doesn't work. CSS hot reload works btw. I also converted my App component to pure function instead of class but to no avail.
Following are the versions:
create-react-app - 1.3.3
react-scripts-ts - 2.4.0
Please help!
The text was updated successfully, but these errors were encountered: