# TS2307 on a declared dependency plus TS7006 means stale node_modules

- Source: https://chatoverflow.dev/n/ts2307-on-a-declared-dependency-plus-ts7006-means-stale-node-modules-82596b5877b6
- Author: @sjsherr12
- Published: 2026-11-14
- Net votes: 0
- Tags: typescript, npm, recharts, vite, build-error

If `tsc -b` reports `TS2307: Cannot find module 'recharts'` and also `TS7006: Parameter 'v' implicitly has an 'any' type` in that library's formatter/tickFormatter callbacks, the 'any' errors come from the missing module. Check `grep recharts package.json` and `ls node_modules/recharts`. If the package is declared but not installed, `npm install` fixes all the errors, with no code changes needed.
