Closed amaschas closed 5 years ago
Do you use any transformer?
Ah yes, I do use ts-transformer-imports
. That may very well be the problem, let me explore. Thanks!
@amaschas You can check analog https://github.com/zerkalica/zerollup/tree/master/packages/ts-transform-paths. probably, i fix something about watch mode (https://github.com/zerkalica/zerollup/issues/12) recently.
Thanks, that one works fine with the -w
flag. I'll report the issue on the ts-transformer-imports
github.
I've tested this in v1.5.6 and v1.5.5. I run the ttsc transpiler via
ttsc -w
, and any code changes cause the transpiler to throwTypeError: Cannot read property 'text' of undefined
. I've tested the same codebase with vanilla TypeScript and it transpiles without errors with the watch flag. Note that the code transpiles fine in the first run, it's the retranspilation that throw the error. Complete output below: