docs: add TROUBLESHOOTING.md troubleshooting manual - #3241
Conversation
📝 WalkthroughWalkthroughAdds ChangesTermUI troubleshooting
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@TROUBLESHOOTING.md`:
- Around line 7-10: Update the clean reinstall command in the Resolution section
of TROUBLESHOOTING.md to remove only node_modules and use npm ci, preserving
package-lock.json. Do not regenerate the lockfile unless explicitly addressing a
stale or invalid lockfile.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
| * **Resolution**: Wipe your active module tree and reinstall packages from scratch: | ||
| ```bash | ||
| rm -rf node_modules package-lock.json && npm install | ||
| ``` |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== files =="
git ls-files | sed -n '1,120p'
echo "== TROUBLESHOOTING =="
if [ -f TROUBLESHOOTING.md ]; then
nl -ba TROUBLESHOOTING.md | sed -n '1,80p'
fi
echo "== package manager files =="
for f in package-lock.json npm-shrinkwrap.json pnpm-lock.yaml yarn.lock; do
echo "--- $f"
[ -f "$f" ] && wc -l "$f"
done
echo "== lockfile/package scripts relevant =="
if [ -f package.json ]; then
python3 - <<'PY'
import json
with open('package.json') as f: data=json.load(f)
print(json.dumps({"name": data.get("name"), "scripts": data.get("scripts"), "dependencies": data.get("dependencies"), "devDependencies": data.get("devDependencies")}, indent=2, sort_keys=True))
PY
fiRepository: Karanjot786/TermUI
Length of output: 5756
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== TROUBLESHOOTING lines 1-30 =="
awk '{printf "%6d\t%s\n",NR,$0} NR<=30' TROUBLESHOOTING.md 2>/dev/null || cat -n TROUBLESHOOTING.md 2>/dev/null | sed -n '1,30p'
echo "== lockfile/package scripts relevant =="
for f in package-lock.json npm-shrinkwrap.json pnpm-lock.yaml yarn.lock package.json; do
echo "--- $f"
[ -f "$f" ] && wc -l "$f"
done
if [ -f package.json ]; then
python3 - <<'PY'
import json
with open('package.json') as f: data=json.load(f)
print(json.dumps({"name": data.get("name"), "scripts": data.get("scripts"), "dependencies": data.get("dependencies"), "devDependencies": data.get("devDependencies")}, indent=2, sort_keys=True))
PY
fiRepository: Karanjot786/TermUI
Length of output: 3012
Preserve the lockfile during a clean reinstall.
Removing package-lock.json makes npm install resolve a new dependency tree, which can hide the original mismatch and leave local builds unreproducible. Prefer rm -rf node_modules && npm ci; only regenerate the lockfile intentionally when it is stale or invalid.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@TROUBLESHOOTING.md` around lines 7 - 10, Update the clean reinstall command
in the Resolution section of TROUBLESHOOTING.md to remove only node_modules and
use npm ci, preserving package-lock.json. Do not regenerate the lockfile unless
explicitly addressing a stale or invalid lockfile.
Source: MCP tools
Description
Introduces a comprehensive troubleshooting guide for common local environment setup, viewport scaling, and permission constraints to streamline onboarding.
Related Issue
Closes #3240
Which package(s)?
docs
Summary by CodeRabbit