question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Button] "as" prop has incorrect type in rc2

See original GitHub issue

Describe the bug

This code:

                       <Button
                              as="a"
                              target="_blank"
                            >...</Button>

Gives the following TypeScript error: image

Additional context Chakra: 1.0.0-rc2 TypeScript: 3.9.7

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ralphiliuscommented, Aug 18, 2020

Thanks @with-heart for your prompt response and tip

1reaction
with-heartcommented, Aug 18, 2020

@ralphilius I’ll check with Segun and try to release it today if we’re in a good place.

You could always annotate issues like this with @ts-expect-error so that when they’re fixed, ts will let you know that it’s no longer throwing an error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ButtonProps from the package is incompatible with Button ...
I'd consider this a bug in the @types/reactstrap type declarations. Notice that the same error occurs in the following simpler test case:
Read more >
ASP.NET Core updates in .NET 6 Release Candidate 2
The analyzer will verify middleware ordering for WebApplicationBuilder and warn you when an incorrect middleware configuration or order is ...
Read more >
Typechecking With PropTypes - React
In this example, we're using PropTypes.string . When an invalid value is provided for a prop, a warning will be shown in the...
Read more >
Warning: Each Child in a List Should Have a Unique 'key' Prop
Then React will get confused and re-render the incorrect element. Keys do not have to be unique globally. They just need to be...
Read more >
X-Plane 12.00 Release Notes
XPD-13607 – From Bug Report: Alia 250 Pitot Button not a toggle on/off . Release candidate 5. Scenery update: Recut global scenery is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found