I'm new ish to TypeScript and to Next.js currently feeling trapped in dependency versioning hell trying to build, hoping someone can point me in the right direction.
When running next build I'm getting Type Errors in recharts DefaultTooltopContent.tsx
I see a year-old stackoverview q around this exact error saying to upgrade TypeScript version but my TS version is already higher. (Unless I need to separately tell next.js which TS version to use in the build?)
"react": "18.0.0",
"recharts": "^2.1.9"
...
"typescript": "4.6.3"
Appreciate any ideas or feedback.