TSC Watch crashes when class is exported as module.exports.default in JS file - cannot read property 'kind' of undefined #41101
Labels
Bug
A bug in TypeScript
Domain: Declaration Emit
The issue relates to the emission of d.ts files
Duplicate
An existing issue was already created
Milestone
I get this error:
This happens when I create a file called "index.js" and try to compile it with
tsc -w
.Here is my
tsconfig.json
:TSC breaks and doesn't offer a helpful error message.
The following is the code that can be used to reproduce this exact error.
I spent over an hour to isolate the error; it didn't mention which file produced the error or etc.
Strangely enough, running just
tsc
by itself compiles the code successfully.The text was updated successfully, but these errors were encountered: