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
so sad...Subsequent variable declarations must have the same type. Variable 'a' must be of type #20863
Comments
use |
hi, I am also face the same problem and this is the error |
The problem is that you are using a different version of
Upgrading |
Also see this issue: #20942 — I had to add a |
in my case if fix it with
|
Hi thread, we're moving DefinitelyTyped to use GitHub Discussions for conversations the To help with the transition, we're closing all issues which haven't had activity in the last 6 months, which includes this issue. If you think closing this issue is a mistake, please pop into the TypeScript Community Discord and mention the issue in the |
@types/react@latest
package and had problems.npm run tsc -v
3.10.10
the console
about the react tree
I use
yarn outdated
yarn upgrade
and deleted yarn.lock and use install@types/react@latest
@types/react-dom@latest
but not resolve the problemThe text was updated successfully, but these errors were encountered: