Course එකට ආපසු

Troubleshooting Common Issues

10 මිනිත්තු📚Reference

Troubleshooting Common Issues

Things don't always work perfectly — and that's normal! This lesson is your troubleshooting reference guide.

🎯 Lesson Objectives

By the end of this lesson, you will:

  • Know how to fix the most common issues
  • Understand why problems occur
  • Have troubleshooting prompts ready to use
  • Feel confident handling unexpected results

Bookmark This!

Save this page — you'll come back to it when you hit problems!


Issue 1: AI Doesn't Understand My Request

Symptoms:

  • AI generates something completely different from what you wanted
  • AI asks clarifying questions
  • Result is generic or irrelevant

Why It Happens:

  • Prompt is too vague
  • Technical terms used incorrectly
  • Conflicting instructions

Solutions:

Solution A: Be More Specific

❌ Vague
✅ Specific
Make a nice card
Make a profile card with circular photo, name, job title, bio, and contact button
Make it look better
Add rounded corners, subtle shadow, and increase font size to 18px
Add some color
Use navy blue (#1a365d) for headings and light gray (#f7fafc) for background

Solution B: Provide Examples

Try this prompt
Create a card similar to LinkedIn profile cards — photo on left, name and title on right, bio below, connection button at bottom
ChatGPTClaude

Solution C: Break It Down Instead of one complex prompt, use multiple simple ones:

  1. "Create a card layout with rounded corners and shadow"
  2. "Add a circular image placeholder at the top"
  3. "Add heading for name and subheading for title"
  4. "Add a short paragraph for bio"
  5. "Add a button at the bottom"

Issue 2: Design Looks Broken on Mobile

Symptoms:

  • Elements overlap on phone screens
  • Text too small to read
  • Buttons too small to tap
  • Horizontal scrolling needed

Why It Happens:

  • Fixed widths used instead of responsive
  • No mobile-first design
  • AI assumed desktop viewing

Solutions:

Solution A: Request Mobile-First

Try this prompt
Redesign this to be mobile-first. It should look perfect on a phone screen.
ChatGPTClaude

Solution B: Fix Specific Issues

Try this prompt
The buttons overlap on mobile. Stack them vertically on small screens.
ChatGPTClaude
Try this prompt
The text is too small on mobile. Increase all font sizes for small screens.
ChatGPTClaude

Solution C: Request Responsive Testing

Try this prompt
Make sure this works well at 375px width (standard phone), 768px width (tablet), and 1200px+ (desktop)
ChatGPTClaude

Issue 3: Can't Find Share Button

Platform-Specific Solutions:

v0.dev:

  • Look for share icon (box with arrow) in top-right
  • Check the three-dot menu (⋮)
  • Right-click on the preview and copy link

Replit:

  • Click "Run" first
  • Look at the webview panel header
  • Click the expand/external link icon
  • Copy the URL from browser bar

General:

  • Look for icons: 📤 🔗 ↗️
  • Check dropdown menus
  • Try right-clicking on preview

Issue 4: Page Loads Slowly

Symptoms:

  • Long wait before content appears
  • Images take forever to load
  • Animations are choppy

Why It Happens:

  • Too many large images
  • Heavy animations
  • Complex code that needs optimization

Solutions:

Solution A: Simplify

Try this prompt
Simplify this design to load faster. Remove heavy animations and optimize images.
ChatGPTClaude

Solution B: Optimize Specific Elements

Try this prompt
Replace the background image with a CSS gradient for faster loading
ChatGPTClaude
Try this prompt
Use lazy loading for images below the fold
ChatGPTClaude

Solution C: Reduce Complexity

Try this prompt
Remove the complex shadow effects and use simpler CSS styling
ChatGPTClaude

Issue 5: Colors Look Bad Together

Symptoms:

  • Colors clash visually
  • Text is hard to read
  • Design looks unprofessional

Why It Happens:

  • Random color selection
  • Poor contrast ratios
  • Too many colors

Solutions:

Solution A: Request Professional Palette

Try this prompt
Replace the colors with a professional, cohesive color palette. Use only 2-3 main colors plus neutrals.
ChatGPTClaude

Solution B: Use Named Color Schemes

Try this prompt
Use a minimalist/corporate/playful/warm/cool color scheme
ChatGPTClaude

Solution C: Specify Exact Colors

Try this prompt
Use this specific color palette: - Primary: #4A90D9 (blue) - Secondary: #F5F5F5 (light gray) - Accent: #FF6B35 (orange) - Text: #333333 (dark gray) - Background: #FFFFFF (white)
ChatGPTClaude

Issue 6: Text Is Hard to Read

Symptoms:

  • Low contrast between text and background
  • Font size too small
  • Line spacing too tight
  • Font hard to read

Why It Happens:

  • Poor contrast ratio
  • Design over usability
  • Mobile not considered

Solutions:

Solution A: Improve Contrast

Try this prompt
Increase text contrast to meet accessibility standards. Dark text on light backgrounds, or light text on dark backgrounds.
ChatGPTClaude

Solution B: Fix Typography

Try this prompt
Improve typography: - Body text at least 16px - Line height 1.5-1.6 - Maximum line width 65-75 characters - Clear font hierarchy
ChatGPTClaude

Solution C: Change Font

Try this prompt
Use more readable fonts like Inter, Open Sans, or system fonts. Avoid decorative fonts for body text.
ChatGPTClaude

Issue 7: Interactive Elements Don't Work

Symptoms:

  • Buttons don't respond to clicks
  • Forms don't submit
  • Animations don't play
  • Links go nowhere

Why It Happens:

  • JavaScript not properly connected
  • Event handlers missing
  • Code errors preventing execution

Solutions:

Solution A: Request Functional Code

Try this prompt
Make sure the button actually does something when clicked. Add a visible response like showing an alert or changing text.
ChatGPTClaude

Solution B: Debug

Try this prompt
The contact button doesn't seem to work. Check the click handler and fix any issues.
ChatGPTClaude

Solution C: Simplify Interaction

Try this prompt
Replace the complex interaction with a simple working version: when clicked, show a thank you message
ChatGPTClaude

Issue 8: AI Hit Usage Limit

Symptoms:

  • "Rate limit exceeded" message
  • Can't generate more
  • Premium features locked

Why It Happens:

  • Free tier has request limits
  • Too many generations in short time

Solutions:

Solution A: Wait

  • Limits usually reset hourly or daily
  • Take a break and return later

Solution B: Use Alternative

  • Switch between v0.dev and Replit
  • Try different AI tools

Solution C: Be More Efficient

  • Write better prompts to reduce iterations
  • Plan your design before prompting

Quick Reference Table

ProblemFirst TryIf That Fails
AI misunderstandsBe more specificBreak into steps
Broken on mobile"Make mobile-first"Fix specific elements
Can't find shareCheck menu iconsRight-click preview
Slow loading"Simplify and optimize"Remove heavy elements
Bad colorsRequest "professional palette"Specify exact hex codes
Hard to read"Improve contrast"Specify font sizes
Nothing works"Make it functional"Simplify the interaction
Usage limitWait an hourUse alternative tool

When Nothing Works

If you're truly stuck:

Last Resort Options

  1. Start Fresh — Sometimes it's faster to start over with a better prompt

  2. Search for Examples — Look at v0.dev/Replit community examples and copy a working pattern

  3. Ask for Help — Post in course community, describe what you tried

  4. Take a Break — Fresh eyes often solve problems. Return in an hour or the next day


✅ Lesson Summary

Key Troubleshooting Strategies:

  1. Be more specific — Most issues come from vague prompts
  2. Break it down — Complex problems need step-by-step solutions
  3. Check mobile — Always verify on small screens
  4. Simplify — When in doubt, reduce complexity
  5. Be patient — AI tools have limits, work within them

Remember

Problems are normal. Every developer troubleshoots. You're learning a valuable skill!


➡️ Next Lesson

You've built, shared, improved, and troubleshot. Now let's reflect on your achievement and prepare for what's next!