No overload matches this call for `variantColor` in Button Typescript
See original GitHub issueBug report
Describe the bug
To reproduce
- Install chakra-ui using
yarn add @chakra-ui/core @emotion/core @emotion/styled emotion-theming @chakra-ui/core@next
- Go to node_modules/@chakra-ui/button/dist/types/button.d.ts
- Scroll down to Button props
- Buton props don’t have
variantColor
Minimal reproduction
Expected behavior
Screenshots
System information
- OS: [e.g. macOS, Windows]
- Browser (if applies): [e.g. Chrome, Safari]
- Version of @chakra-ui/core: @chakra-ui/button@1.0.0-rc.5
- Version of Node.js: 10.15.3
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
No overload matches this call. in typescript React
The error appears: No overload matches this call. Overload 1 of 2, '(props: Readonly): UserCode', gave the following error.
Read more >No overload matches this call error in TypeScript | bobbyhadz
The error "No overload matches this call" occurs when we call a function and pass it a parameter that doesn't match any of...
Read more >No overload matches this call with styled components - Medium
No overload matches this call in TypeScript is really annoying and there aren't too many solutions around there, though we have a solution!...
Read more >Resolving React Native Paper 'No overload matches this call ...
Quick tip for getting past one of the more frustrating and cryptic TypeScript errors I've run into.
Read more >No overload matches this call with styled components - Reddit
When creating a button component that could be a link or a normal button or submit for example (it could be any element...
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
Oh got it.
https://chakra-ui.com/
doesn’t have anything to mention that it is v0 or some sort of warning 😅 Also, Google still indexeschakra-ui.com
as a top result forchakra documentation
Thanks for the help
It’s not in the old docs because as you can see we’re replacing them entirely. Regardless, the new docs are mentioned right here: https://github.com/chakra-ui/chakra-ui#looking-for-the-documentation- 😃