Things will break. That's normal. This section helps you fix the most common issues without panicking.
When something breaks:
- Don't panic
- Read the error message
- Ask Cursor to fix it
- If that doesn't work, ask the community
Most errors are simple fixes. You just need to know where to look.
What it means: Your Firebase SDK isn't loaded or configured correctly.
How to fix:
- Make sure you've included the Firebase SDK in your HTML
- Check that your Firebase config is correct
- Ask Cursor: "I'm getting 'Firebase is not defined' error. Check my Firebase configuration and make sure it's set up correctly."
What it means: Your security rules are blocking the operation.
How to fix:
- Go to Firebase Console → Firestore Database → Rules
- For development, you can temporarily use:
rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read, write: if request.auth != null; } } } - Warning: This allows any logged-in user to read/write everything. Fine for learning, not for production.
Ask Cursor: "I'm getting permission denied errors. Help me set up basic Firestore security rules for development."
What it means: Auth might not be enabled or configured correctly.
How to fix:
- Go to Firebase Console → Authentication → Sign-in method
- Enable "Email/Password"
- Make sure your auth code matches your Firebase config
- Check the browser console for specific error messages
Ask Cursor: "My Firebase authentication isn't working. Check my auth code and help me debug it."
What it means: The prompt wasn't specific enough, or Cursor made an assumption.
How to fix:
- Be more specific in your prompt
- Show Cursor the error message
- Ask: "This code isn't working. Here's the error: [error]. Fix it."
- Provide context about what you're trying to do
Example: ❌ "Fix this" ✅ "This Firebase auth code isn't working. The error says 'auth/operation-not-allowed'. I'm trying to let users sign up with email and password. Fix it."
What it means: Cursor needs more context about your codebase.
How to fix:
- Make sure you've opened the entire project folder in Cursor
- Reference specific files in your prompts
- Show Cursor related code: "Here's my auth code [code]. Now I want to add a logout button. Make it work with this existing code."
What it means: GitHub can't find your repo, or you're not authenticated.
How to fix:
- Make sure you're logged into GitHub
- Check that the repo name is correct
- Verify you have access to the repo
- Try cloning it fresh:
git clone [repo-url]
What it means: You haven't committed and pushed your changes.
How to fix:
- Commit your changes:
git add .thengit commit -m "Your message" - Push to GitHub:
git push - Refresh GitHub in your browser
Ask Cursor: "Help me commit and push my changes to GitHub. Walk me through the git commands."
What it means: Your code has errors, or the build process is failing.
How to fix:
- Test your app locally first
- Check the Firebase deployment logs for specific errors
- Fix the errors locally
- Try deploying again
Ask Cursor: "I'm getting build errors when deploying to Firebase. Here's the error: [error]. Help me fix it."
What it means: Environment variables or paths might be wrong.
How to fix:
- Check that your Firebase config is correct
- Make sure all file paths are relative (not absolute)
- Check the browser console on the deployed site for errors
- Verify your Firebase project settings match your code
Ask Cursor: "My app works locally but breaks when deployed. Help me debug the differences between local and deployed environments."
When nothing seems to work:
- Take a break — Sometimes stepping away helps
- Simplify — Strip it down to the absolute basics
- Start fresh — Sometimes starting over is faster than debugging
- Ask for help — In the Skool community
Remember: Every builder hits this. It's normal. You're not broken. The code is.
When asking for help (in the community or to Cursor), include:
- What you're trying to do — The goal
- What you expected to happen — Expected behavior
- What actually happened — Actual behavior
- The error message — Copy/paste the exact error
- What you've tried — Steps you've already taken
Example: "I'm trying to let users save notes to Firestore. I expected the note to save when they click submit. Instead, I get an error: 'Permission denied'. I've checked that auth is enabled and the user is logged in. What am I missing?"
Good questions get good answers. Be specific.
When something breaks:
- Read the error — It usually tells you what's wrong
- Check the console — Browser dev tools show errors
- Simplify — Remove features until it works, then add them back
- Use Cursor — Ask it to debug: "Debug this code. Here's the error: [error]"
- Ask the community — Someone has probably hit this before
Most bugs are simple. You just need to find them.
| Problem | Quick Fix |
|---|---|
| Firebase not defined | Check Firebase SDK is loaded |
| Permission denied | Update Firestore security rules |
| Auth not working | Enable Email/Password in Firebase Console |
| Cursor code doesn't work | Be more specific in your prompt |
| GitHub repo not found | Check you're logged in and repo exists |
| Build errors | Test locally first, fix errors, then deploy |
| Works locally, breaks deployed | Check environment variables and paths |
Remember: Breaking things is how you learn. Every error is a lesson.
Next: Keep building. Keep breaking. Keep fixing. That's vibe coding.
Stuck? Join the Vibe Coding with Chris Skool community for help and support.