Fix Git 'index.lock' File Exists Error in IntelliJ - TypeScript Compilation Error Fix for npm Build-Recovering Uncommitted Work After Detached HEAD in Git

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.