https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta
Add the following resolutions to your package.json
:
{
"resolutions": {
"@babel/preset-typescript": "^7.21.0",
"@babel/core": "^7.21.0",
"@babel/plugin-transform-typescript": "^7.21.0"
}
}
Once Expo adds support for this (likely in SDK 49), you should remove these resolutions.
At the time of writing this, TS is at 5.0.2. I added the following resolutions to get ESLint support too. However, keep in mind that ESLint doesn't add full support for TypeScript versions before they're stable, so there may be some issues.
{
"resolutions": {
"@typescript-eslint/eslint-plugin": "5.57.0",
"@typescript-eslint/parser": "5.57.0"
}
}
Once Expo adds support for this (likely in SDK 49), you should remove these resolutions.
You should upgrade this to latest.