You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the code generated by TypeScript (which actually is missing the import).
Note that the generated code is trying to call ViewerItemCardType_1.ViewerItemCardType.Big but the variable ViewerItemCardType_1 wasn't actually imported properly.
TypeScript Version: 2.3.1 and 2.3.2
Actual behavior:
I did update my project from TypeScript 2.2 to 2.3.1 (and 2.3.2) and I observed some missed imports from static members of classes.
Code
This is how I create and export the static members:
Which is converted using TSC into:
Here is how I import and use the static members:
Here is the code generated by TypeScript (which actually is missing the import).
Note that the generated code is trying to call ViewerItemCardType_1.ViewerItemCardType.Big but the variable ViewerItemCardType_1 wasn't actually imported properly.
My tsconfig:
Expected behavior:
Create the variable ViewerItemCardType_1 in the generated js file. It was working fine in TypeScript 2.2.
Thanks!
The text was updated successfully, but these errors were encountered: