Installation Issues
Bun not found
Section titled “Bun not found”Problem: command not found: bun
Fix: Install Bun:
curl -fsSL https://bun.sh/install | bashThen restart your terminal or run source ~/.bashrc (or ~/.zshrc).
Dependencies fail to install
Section titled “Dependencies fail to install”Problem: bun install fails with resolution errors.
Fix: Clear the cache and retry:
rm -rf node_modules bun.lockbbun installConfig file not found
Section titled “Config file not found”Problem: Dev server starts but shows empty collections or errors about missing config.
Fix: Make sure you’ve created your config file:
cp buddy.config.example.ts buddy.config.tsPort already in use
Section titled “Port already in use”Problem: bun dev fails with EADDRINUSE on port 4321.
Fix: Either kill the process using that port or use a different port:
bun dev --port 4322TypeScript errors on first run
Section titled “TypeScript errors on first run”Problem: TypeScript errors about missing types after fresh install.
Fix: The Astro types are generated on first build. Run:
bun run buildThen restart your dev server.
Git merge conflicts after upstream pull
Section titled “Git merge conflicts after upstream pull”Problem: Conflicts when pulling from upstream after a fork.
Fix: Content files won’t conflict (they’re gitignored). If you see conflicts in buddy.config.example.ts or src/content.config.ts:
- Review the changes in both versions
- Keep your customizations while incorporating upstream schema changes
- Resolve with
git addandgit merge --continue