Spaces:
Sleeping
Troubleshooting Guide
Installation & Setup
Node Version Errors
Symptoms:
Error: The engine "node" is incompatible with this module
Solution:
# Check current version
node -v
# Should be 18.x or higher
# Install correct version
nvm install 18
nvm use 18
# Or with Homebrew (macOS)
brew install node@18
npm install Failures
Symptoms:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
Solutions:
# Clear cache
npm cache clean --force
# Delete node_modules and package-lock
rm -rf node_modules package-lock.json
# Reinstall
npm install
# If still failing, use legacy peer deps
npm install --legacy-peer-deps
Build Errors
Symptoms:
Error: Cannot find module '@next/swc-darwin-arm64'
Solutions:
# Reinstall dependencies
rm -rf node_modules .next
npm install
# Run build
npm run build
# If specific platform binary missing
npm install --force
API & Provider Issues
Invalid API Key
Symptoms:
- "Invalid API key" error
- 401 Unauthorized
- Authentication failed
Solutions:
Verify key is correct:
- Copy key directly from provider
- Check for extra spaces
- Ensure no line breaks
Check key permissions:
- OpenAI: Key must have chat/completions access
- Anthropic: Key must be active
- OpenRouter: Check credits balance
Re-enter key:
- Settings β Select provider β Click Disconnect β Paste new key β Click Connect
Rate Limiting
Symptoms:
- "Rate limit exceeded" error
- 429 Too Many Requests
- Slow responses
Solutions:
Wait before retrying:
- Wait 1 minute before next request
- AI will auto-retry with backoff
Switch models:
- Use different model with separate limits
- Or switch provider temporarily
Upgrade plan:
- Check provider's pricing page
- Higher tiers often have higher limits
Model Not Found
Symptoms:
- "Model not found" error
- 404 Model does not exist
- "Invalid model" message
Solutions:
Check model name:
- Exact spelling required
- Case-sensitive for some providers
Refresh model list:
- Settings β Provider β Click refresh icon
- Select from updated list
Check provider access:
- Some models require special access
- OpenAI: o1 requires tier 3+
- Anthropic: Check beta access
Connection Timeouts
Symptoms:
- Request timeout
- No response from AI
- Connection error
Solutions:
Check internet connection:
- Test with other websites
- Disable VPN temporarily
Try different provider:
- Issue may be provider-specific
- Switch to backup provider
Check provider status:
- Visit provider's status page
- OpenAI: status.openai.com
- Anthropic: status.anthropic.com
CORS Errors (Local Providers)
Symptoms:
Access to fetch blocked by CORS policy
Solutions:
- Ollama: Ensure CORS enabled
# Set environment variable
export OLLAMA_ORIGINS="*"
# Restart Ollama
LM Studio: Enable CORS in settings
- Settings β Server β Enable CORS
Use proxy mode:
- OSW Studio has proxy routes that bypass CORS
Generation Issues
AI Not Responding
Symptoms:
- "Thinking..." indicator stuck
- No response after several minutes
- Request seems to hang
Solutions:
Check browser console (F12):
- Look for JavaScript errors
- Check network tab for failed requests
Refresh page:
- Reload browser tab
- Projects and conversation persist
Try shorter prompt:
- Very long prompts may timeout
- Break into smaller requests
Switch models:
- Some models may be overloaded
- Try different provider
Tool Call Failures
Symptoms:
- Red X marks on tool executions
- "File not found" errors
- "Invalid path" errors
Solutions:
Check file paths:
- Paths must start with
/ - Case-sensitive
- Paths must start with
Verify file exists:
- Check file explorer
- AI may be referencing old/deleted file
Retry:
- AI usually retries automatically
- Or rephrase request
Loop Detection Triggered
Symptoms:
Loop detected: Preventing repeated failed command
Solutions:
Different approach:
- AI was repeating failing command
- Rephrase your request
- Provide more context
Manual fix:
- Fix the issue manually
- Then ask AI to continue
Fresh start:
- Start new conversation
- Describe problem differently
Out of Memory
Symptoms:
- Browser tab crashes
- "Out of memory" error
- Slow/unresponsive UI
Solutions:
Close other tabs:
- Free up browser memory
Smaller project:
- Split large project into parts
- Delete unused files
Restart browser:
- Close and reopen browser
- Clear cache if needed
Browser Mode Issues
IndexedDB Quota Exceeded
Symptoms:
QuotaExceededError: The quota has been exceeded
Solutions:
Delete old projects:
- Export important projects first
- Delete unused projects
Clear browser data:
- Keep OSW Studio origin
- Or export all (.osws) then reimport
Check browser quota:
// In console (F12)
navigator.storage.estimate().then(estimate => {
console.log(`Using ${estimate.usage} of ${estimate.quota} bytes`);
});
Lost Data After Clearing Cookies
Symptoms:
- All projects gone
- After clearing browser data
Prevention:
- Regular .osws exports (backups)
- Don't clear IndexedDB for OSW Studio origin
Recovery:
- Import last .osws backup
- Or start fresh
Slow Performance with Large Projects
Symptoms:
- Laggy editor
- Slow file operations
- Preview takes long to load
Solutions:
Reduce project size:
- Delete unused files
- Compress images
- Remove old assets
Split project:
- Break into multiple smaller projects
Use Server Mode:
- Server Mode handles large projects better
Editor Issues
Monaco Not Loading
Symptoms:
- Blank editor area
- "Loading editor..." stuck
- No syntax highlighting
Solutions:
Refresh page:
- Hard refresh (Cmd/Ctrl+Shift+R)
Check browser console:
- Look for Monaco-related errors
- Network issues loading CDN
Disable extensions:
- Browser extensions may interfere
- Try in incognito/private mode
File Not Saving
Symptoms:
- Changes not persisting
- "Save failed" error
- File reverts after close
Solutions:
Check VFS:
- File explorer should update
- If not, VFS write failed
Try manual save:
- Cmd/Ctrl+S
- Check for error messages
Check browser storage:
- May be quota issue (see above)
Tab Issues
Symptoms:
- Can't close tabs
- Tabs not switching
- Wrong file showing
Solutions:
Refresh page:
- Editor state resets
Close all tabs:
- Right-click β Close All
- Reopen files from explorer
Preview Issues
Preview Not Updating
Symptoms:
- Changes not reflected
- Old version showing
- Preview stuck
Solutions:
Manual refresh:
- Click β» button in preview
Hard refresh preview:
- Right-click preview β Inspect
- In DevTools: Right-click refresh β Hard Reload
Save file first:
- Cmd/Ctrl+S
- Then preview updates
Assets Not Loading
Symptoms:
- Images broken (missing icon)
- CSS not applied
- JavaScript not running
Solutions:
Check file paths:
- Absolute paths from the project root work:
/images/logo.png - Relative paths also work:
./images/logo.png - Paths are case-sensitive
- Absolute paths from the project root work:
Verify files exist:
- Check file explorer
- Correct spelling/case
Check browser console:
- F12 β Console tab
- Look for 404 errors
Handlebars Errors
Symptoms:
Error: Missing partial: header
or
Error: Parse error on line 5
Auto-fix: In Code Mode, the AI can run build to check for compilation errors and fix them. You can also ask the AI to run build if you see errors in the preview.
Manual solutions (if the AI doesn't catch it, or in Chat Mode):
Check partial exists:
/templates/header.hbsmust exist- Correct path in
{{> header}}
Check syntax:
- Closing tags match opening
- Valid Handlebars syntax
Check front matter:
- YAML between
---delimiters - Valid YAML syntax
- YAML between
Blob URL Issues
Symptoms:
blob:http://localhost...URLs- Images work in preview but not export
Solution:
- This is normal for preview
- Export compiles to regular paths
- Deploy exported ZIP, not preview
Export Issues
ZIP Download Fails
Symptoms:
- Export button does nothing
- Download starts but fails
- Corrupted ZIP file
Solutions:
Check browser permissions:
- Allow downloads for site
Try different browser:
- Chrome, Firefox, or Safari
Smaller project:
- If project very large, may timeout
- Remove unused assets
Missing Files in Export
Symptoms:
- Exported ZIP incomplete
- Some files missing
- Folder structure wrong
Solutions:
Check file explorer:
- Ensure all files saved
- Cmd/Ctrl+S
Wait for export to complete:
- Large projects take time
- Don't interrupt download
Re-export:
- Try export again
- Check ZIP contents
Handlebars Not Compiled
Symptoms:
.hbsfiles in ZIP{{> partial}}syntax in output- Site broken when deployed
Solution:
- Ensure using "Export β ZIP" (not .osws)
- ZIP export auto-compiles Handlebars
- If issue persists, report bug
Performance Issues
Slow AI Responses
Symptoms:
- Long wait times
- "Thinking..." for minutes
Causes:
- Provider-side latency
- Model overload
- Large context
Solutions:
Switch models:
- Try faster model (smaller size)
- Or different provider
Reduce context:
- Start fresh conversation
- Delete old messages
Use streaming:
- Most providers support streaming
- See partial responses as they generate
Slow File Operations
Symptoms:
- Laggy editor typing
- Slow file explorer
- Preview delays
Solutions:
Reduce project size:
- Delete unused files
- Optimize images
Close unused tabs:
- Only open files you need
Restart browser:
- Free up memory
High Memory Usage
Symptoms:
- Browser tab uses lots of RAM
- Computer fan running
- Other apps slow
Solutions:
Close other tabs/apps:
- Free system resources
Smaller projects:
- Split into multiple projects
Use Server Mode:
- Offload storage to server
Still Having Issues?
- Check documentation: Other guides may have answers
- Browser console: F12 β Console for error details
- Report bug: GitHub Issues
When reporting:
- Describe expected vs actual behavior
- Include error messages
- Browser and OS version
- Steps to reproduce