-
Preliminary Checks
DescriptionUsing Gatsby with TypeScript out of the box, I'm unable to use Reproduction Linkhttps://github.com/kevinhaube/dev-blog Steps to Reproduce
Expected ResultThe type successfully passes checking as a Actual Result
EnvironmentSystem:
OS: Windows 10 10.0.22621
CPU: (12) x64 Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz
Binaries:
Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.3.1 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.22621.1.0), Chromium (101.0.1210.39)
npmPackages:
gatsby: ^4.14.1 => 4.14.1
gatsby-plugin-mdx: ^3.14.0 => 3.14.0
gatsby-plugin-react-helmet: ^5.14.0 => 5.14.0
gatsby-plugin-styled-components: ^5.14.0 => 5.14.0
gatsby-source-filesystem: ^4.14.0 => 4.14.0 Config Flagsn/a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You're using the outdated types, that's why Update to "@types/react": "^18.0.9",
"@types/react-dom": "^18.0.4", And it should be fine, at least when I tried it with your repo. |
Beta Was this translation helpful? Give feedback.
-
Faced the same problem with |
Beta Was this translation helpful? Give feedback.
You're using the outdated types, that's why
Update to
And it should be fine, at least when I tried it with your repo.