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
Duplicate of #15469. should be fixed in TS 2.3 (out later this week). the fix should already be in typescript@next please give it a try and let us know if you still running into issues.
TypeScript Version: 2.3.2
Version 2.3.2 removes imports of react components if you use them only in JSX(TSX).
Code
Compiled with 2.3.2
As you can see import was removed from compiled JS, but if i assign these components to a variable - everything works fine.
compiles into
Version 2.3.0 works fine even without assigning to dummy vars, so it looks like regression.
Compiled with 2.3.0
Expected behavior:
To have
Actual behavior:
Import of components was removed from compiled file.
The text was updated successfully, but these errors were encountered: