CompoundedComponent and DropdownInterface is not exported which results in error ts(4032)
See original GitHub issueReproduction link
Steps to reproduce
Wrap Button component into styled (styled-components)
What is expected?
No error
What is actually happening?
We are exporting component that using an interface that hadn’t exported and in result we have error Exported variable 'ButtonStyled' has or is using name 'CompoundedComponent' from external module "/sandbox/node_modules/antd/es/button/button" but cannot be named.ts(4023)
Environment | Info |
---|---|
antd | 5.0.0 |
React | react |
System | Windows 10 |
Browser | Chrome |
Issue Analytics
- State:
- Created 10 months ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Rollup says "[name] is not exported by [file]" while it clearly is
In a svelte component you will need to import your types by specifying that what you import is a type: import { Topic...
Read more >TypeScript errors and how to fix them
When you are importing a module with built-in TypeScript declarations and TypeScript tells you that this module does not have a default export, ......
Read more >afc163 - PullAnswer
tsc --noEmit error: Type '"onResize"' is not assignable to type 'keyof ... and DropdownInterface is not exported which results in error ts(4032).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Of course, but if I need it?
thats good issue, if
CompoundedComponent
andDropdownInterface
had exports that would fix that error easily doing like this