Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
danielfreitas662 opened this issue Aug 29, 2022 · 1 comment
Open

Comments

@danielfreitas662
Copy link

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

@Sheepeer
Copy link

It seems that TabPane is not supported:
#562

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants