-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Typescript Error with "as" prop #51
Comments
I think I might need more detailed as prop usage in the docs to highlight this. Closing this for now, feel free to reopen if you're facing any issues! |
Thanks for your quick the reply back. In my actually code I had the href prop, but in my bad example I forgot to include it. But thanks for including a screenshot showing the addition of the Link component type intersection, that piece I did forget/miss to add; which solved the issue. Great library btw. I've been having a lot of fun with it. |
Describe the bug
Getting a
TS2769: No overload matches this call
when attempting to use the "as" prop with a next/link component. TS appears to be complaining about the lack of the href prop (see screenshot) that Link component requires.Oversimplified example
button.tsx
package.json
Screenshots
The text was updated successfully, but these errors were encountered: