tabs icon indicating copy to clipboard operation
tabs copied to clipboard

import {TabPane} from 'rc-tabs' throws an error in typescript

Open danielfreitas662 opened this issue 3 years ago • 1 comments

When I import the modules like default import Tabs, { TabPane } from 'rc-tabs'; The compiler throws an error which says the TabPane module is not available. TS2614: Module '"rc-tabs"' has no exported member 'TabPane' It works anyway if I ignore the message, but it keeps throwing this error message every time I make changes in dev environment. The error happens when I'm using typescript and it goes away when I set this tsconfig parameter to true: "allowSyntheticDefaultImports": true

danielfreitas662 avatar Aug 29 '22 21:08 danielfreitas662

It seems that TabPane is not supported: https://github.com/react-component/tabs/pull/562

MattinaYang avatar Aug 31 '22 09:08 MattinaYang