IssueRaiser

Hot reloading breaks when encountering Typescript error

<!-- Please note that your issue will be fixed much faster if you spend about half an hour preparing it, including the exact reproduction steps and a demo. If you're in a hurry or don't feel confident, it's fine to report bugs with less details, but this makes it less likely they'll get fixed soon. In either case, please use this template and fill in as many fields below as you can. Note that we don't provide help for webpack questions after ejecting. You can find webpack docs at https://webpack.js.org/. --> ### Describe the bug I am having exactly same issue as metioned in https://github.com/facebook/create-react-app/issues/8055 Since that issue is now closed, I will just re-describe the issue again here. Hot reloading seems to stop working when a Typescript compilation error is encountered. Any subsequent code changes would not trigger hot reloading after that, even if I fix the lines that would cause compile errror. I need to actually close and restart the dev server in order to see my changes reflected. ### Which terms did you search for in User Guide? Typescript, Hot reloading ### Environment <!-- To help identify if a problem is specific to a platform, browser, or module version, information about your environment is required. This enables the maintainers quickly reproduce the issue and give feedback. Run the following command in your React app's folder in terminal. Note: The result is copied to your clipboard directly.

Posted by mikemklee on Mar 18, 2020, 3:33 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

github (SaaS)

Hot reloading breaks when encountering Typescript error

mikemkleeMar 18, 2020, 3:33 AM

<!-- Please note that your issue will be fixed much faster if you spend about half an hour preparing it, including the exact reproduction steps and a demo. If you're in a hurry or don't feel confident, it's fine to report bugs with less details, but this makes it less likely they'll get fixed soon. In either case, please use this template and fill in as many fields below as you can. Note that we don't provide help for webpack questions after ejecting. You can find webpack docs at https://webpack.js.org/. --> ### Describe the bug I am having exactly same issue as metioned in https://github.com/facebook/create-react-app/issues/8055 Since that issue is now closed, I will just re-describe the issue again here. Hot reloading seems to stop working when a Typescript compilation error is encountered. Any subsequent code changes would not trigger hot reloading after that, even if I fix the lines that would cause compile errror. I need to actually close and restart the dev server in order to see my changes reflected. ### Which terms did you search for in User Guide? Typescript, Hot reloading ### Environment <!-- To help identify if a problem is specific to a platform, browser, or module version, information about your environment is required. This enables the maintainers quickly reproduce the issue and give feedback. Run the following command in your React app's folder in terminal. Note: The result is copied to your clipboard directly.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue