btholt / complete-intro-to-react-v4

The Complete Intro to React, as given for Frontend Masters
https://frontendmasters.com/learn/react/
1.14k stars 248 forks source link

Question typescript and parcel #6

Closed ehmkah closed 6 years ago

ehmkah commented 6 years ago

I watched your frontendmaster-session where you showed how to use typescript. Everything works but parcel seems not to update the application if I change something. I need to restart parcel. How could it be achieved that parcel sees changes in tsx files.

ehmkah commented 6 years ago

The reason for this behavior comes from an IntelliJ-feature. In short word: Intellij automatically saves a file to a temporary file if it has been changed (Intellij call it "save-write"). If the temporary change has been successful the temporary file overwrites the old file. That's why parcel cannot see that change.

Solution: Disable safe write feature in Intellij see for details

Since this has nothing to with the react-course I will close this issue.