Preview Issues
Troubleshoot and fix issues with the live preview panel in Juliet.
Written By Samir Patel
Last updated 3 months ago
Preview Issues - Troubleshoot and fix issues with the live preview panel in Juliet.
Common Symptoms
Preview shows blank/white screen "Loading..." message doesn't disappear Preview iframe won't load Development server not starting Preview worked before, now broken
Quick Fixes (Try These First)
Refresh the Preview Click the refresh button (π) in preview panel Why it works: Clears preview cache, reloads app
Wait for Server Startup Check terminal tab for: VITE v5.0.0 ready in 342 ms β Local: http://localhost:5173/ Server may need 10-30 seconds to start initially.
Check Terminal for Errors Look for red error messages: Syntax errors Missing dependencies Port conflicts Build failures Fix errors, preview should load.
Refresh Browser Page Hard refresh: Windows/Linux: Ctrl + Shift + R Mac: Cmd + Shift + R Clears all caches, reloads everything.
Detailed Troubleshooting
Issue: Blank White Screen
Possible causes:
Server hasn't started yet Check terminal:
Look for "ready" or "compiled" message
May show "starting server..."
Wait 30-60 seconds Solution: Be patient, server starting.
JavaScript error Check browser console:
Right-click preview β Inspect
Click Console tab
Look for red errors
Common errors:
Uncaught ReferenceError: React is not defined
Uncaught SyntaxError: Unexpected token
Module not found: Can't resolve 'react-router-dom'
Solution:
Fix syntax error in code
Install missing dependency
Ask AI to fix error
Build error Check terminal for: β Build failed [error messages]
Solution:
Read error message
Fix indicated file/line
Save and rebuild
Ask AI for help
Issue: Loading Forever Spinning loader never stops:
Cause: Server starting but not completing Check terminal: [vite] connecting... [vite] connected. (stuck here)
Solutions:
Port already in use: Error: Port 3000 is already in use Ask AI: "Restart server on different port" Or: "Kill process on port 3000 and restart"
Network issue: Check internet connection Refresh page Try again
Container hibernated: Container may be waking up Wait 30-60 seconds Refresh if still stuck
Issue: Preview Shows Error Page Red error overlay in preview:
This is actually good - it tells you what's wrong! Read the error:
Error: Cannot find module 'axios' Failed to compile. ./src/App.jsx Module not found: Can't resolve 'axios'
Common error types:
Module not found: Can't resolve 'package-name' Solution: Ask AI to install package "Install the axios package"
Syntax error: SyntaxError: Unexpected token (15:10) Solution: Fix syntax in indicated file/line
Import error: export 'default' (imported as 'Header') was not found Solution: Fix import statement or export
Issue: Preview Was Working, Now Broken What changed?
Recent code changes:
Undo recent edit
Check what AI changed last
Revert to previous version (if available)
Dependency changes:
Package installation failed
Dependency conflict
Solutions:
Check terminal for what changed
Review last few chat messages
Ask AI: "Preview stopped working after last change, please fix"
Undo recent changes
Issue: 404 Not Found Preview shows 404 page:
Causes:
Wrong URL path Check address bar in preview Should be / or valid route Correct URL if wrong
Routing not configured App doesn't have routes set up Ask AI: "Set up routing for multiple pages"
Development server path issue Server running but wrong base path Usually auto-configured correctly
Browser-Specific Issues
Chrome/Edge If preview won't load:
Check browser console (F12)
Disable browser extensions temporarily
Try incognito mode
Clear site data: DevTools β Application β Clear storage
Firefox Preview issues:
Check console (F12)
Disable enhanced tracking protection for Juliet
Try private window
Clear cookies for site
Safari Common Safari issues:
Disable content blockers
Check Safari β Preferences β Privacy
Allow cross-site tracking for Juliet (development only)
Try without extensions
Development Server Issues
Server Won't Start Terminal shows error starting server:
Error: EACCES permission denied Solution: Usually resolves on retry. Ask AI: "Restart development server"
Error: EADDRINUSE port in use Solution: Port already used. Ask AI: "Use a different port for dev server"
Error: Cannot find module Solution: Dependencies not installed. Ask AI: "Install all project dependencies"
Server Started But Preview Blank Terminal shows "ready" but preview blank:
Check:
Port number in terminal
Port selector in preview (if multiple ports)
Switch to correct port
Example: Terminal: http://localhost:5173/ Preview showing: port 3000 Solution: Switch preview to port 5173
Server Crashes Server starts then stops: Check terminal for: [error] Server crashed Process exited with code 1
Causes:
Fatal error in code
Out of memory
Dependency issue
Solutions:
Read error message
Fix the error
Restart server
Ask AI for help with error
Prevention Tips
Monitor Terminal Watch for warnings:
Yellow warnings might cause issues
Red errors will break preview Address errors immediately
Test After Changes After each major change:
Check preview still works
Look for console errors
Verify functionality
Save Regularly Save files before testing:
Unsaved changes might not appear
Ctrl+S / Cmd+S to save
Check for orange dots (unsaved)
Incremental Development Small changes:
Make small changes
Test each change
Easier to debug
Identify issue quickly
Keep Dependencies Updated Occasional updates:
Ask AI: "Update project dependencies"
Prevents compatibility issues
Security improvements
Getting Help
Information to Provide When contacting support:
What you see:
Blank screen
Error message (exact text)
Screenshot
Terminal output:
Copy last 20-30 lines
Include error messages
Server startup logs
Browser console:
Copy JavaScript errors
Screenshot if needed
Steps taken:
What you tried
What changed before issue
Does refresh help?
Environment:
Browser and version
Operating system
Internet connection type
Self-Help Resources Before asking:
Check Common Errors
Review Terminal Guide
Read Technical FAQs
Search community forums