TypeScriptCompileBlocked #1297

Closed
opened 2025-08-09 17:19:36 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @lucamorelli on 10/23/2016

please, I suggest a small update in the documentation on how to add hot module reload in a existing project.
To make it work with the ts loader like in your sample I found that I have to add this
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
to the project file.

If you don't do this, ts compiles to a js file, and webpack look at first the js compiled file, see that is not changed and doesn't trigger the reload.

you have 2 solutions:

  1. add that to the project.
  2. and compileOnSave to the tsconfig, this way that js file is updated and webpack reload the changed files.

This thing has made me mad for a week.

*Originally created by @lucamorelli on 10/23/2016* please, I suggest a small update in the documentation on how to add hot module reload in a existing project. To make it work with the ts loader like in your sample I found that I have to add this `<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>` to the project file. If you don't do this, ts compiles to a js file, and webpack look at first the js compiled file, see that is not changed and doesn't trigger the reload. you have 2 solutions: 1. add that to the project. 2. and compileOnSave to the tsconfig, this way that js file is updated and webpack reload the changed files. This thing has made me mad for a week.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1297
No description provided.