Currently, when switching branches in Git or reverting to previous versions in Lovable, the TypeScript and build caches are not automatically cleared. This leads to:
Stale type definitions causing false TypeScript errors
Build artifacts from different versions conflicting
Developer time wasted manually clearing caches
Confusing error messages that don't match the current codebase
TypeScript errors about missing properties (e.g., 'is_overflow') that should exist
Build cache conflicts between different versions of the same component
Persistent type errors even after reverting to known-working versions
Implement automatic cache clearing triggers for:
Git branch switching operations
Version revert operations in Lovable
Code restoration from previous edits
The system should:
Clear the TypeScript compilation cache
Remove build artifacts
Clear Vite's build cache
Regenerate type definitions
Trigger a fresh build
.tsbuildinfo
files
node_modules/.vite
node_modules/.cache
Temporary build directories
No TypeScript errors when switching branches
Clean builds after version changes
Automatic type regeneration
No manual cache clearing needed
Improved developer experience
Reduced debugging time
More reliable builds
Consistent type checking
Blocking - This is blocking my development
TypeScript errors when switching branches
Build inconsistencies after version changes
Manual cache clearing requirements
Please authenticate to join the conversation.
In Review
Bug Hunting
28 days ago
AndrΓ© Brunetta
Get notified by email when there are changes.
In Review
Bug Hunting
28 days ago
AndrΓ© Brunetta
Get notified by email when there are changes.