-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
gatsby-link 5.14.0 types broken #39158
Labels
Comments
Hi, adding a comment here to say I'm facing the EXACT same issue. |
same issue here |
We have the same issue here as well |
For others getting impatient, I just added this to a // Overwrite bad declaration from gatsby-link.
// TODO: Remove once https://github.com/gatsbyjs/gatsby/pull/39169 is merged.
declare module 'gatsby-link' {
import { NavigateOptions } from '@reach/router'
export const navigate: {
(to: string, options?: NavigateOptions<unknown>): void
(to: number, options?: undefined): void
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Preliminary Checks
Description
Updating gatsby-link to 5.14.0 causes types to be broken. It appear's to be caused by #38590
See the kind of Typescript errors I'm receiving now:
See the file
src/pages/redirect.tsx
in the reproduction link.Reproduction Link
https://codesandbox.io/p/devbox/serverless-hooks-xf3rhw?workspaceId=e7359dad-f2e3-4fc9-9dc7-a71e1e25e213
Steps to Reproduce
navigate
using a stringExpected Result
Type checks pass
Actual Result
Type checks fail with following error
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: