Open Avijobo opened 2 years ago
I had the same problems until switching to
"watchOptions": {
"watchFile": "useFsEvents"
},
in my tsconfig.json file so there seems to be errors in the Typescript watch implementation when not using native fs events which are only available on Mac and Windows.
Maybe this will be fixed in 4.8 along with the performance improvements?
TS 4.9 claims to have some improvements in this area and defaults to useFsEvents
After each new 'meteor run', when a source file is edited then, compiler only reruns once for that file. A new edit of the same file does not trigger a new compilation:
This is the log after a first 'main.ts' change:
This is the log after a second 'main.ts' change:
As you can see, 'main.ts' is not recompiled anymore.
This happens for all source files, so they can only be changed once. A new 'meteor run' resets this behavior.
This behavior is here already for some time, could even be from the beginning when I started using this package about half year ago.
It works fine with the default meteor 'typescript' package, which recompiles correctly with any file change, however since this doesn't show any error logging I prefer this package.
Any ideas?
I'm currently running Meteor 2.7 on Linux Mint 19.2 (Ubuntu 18.04).