Common Issues
Code Not Running
Check the Console
Check the Console
Open the browser developer console (F12) to check for errors:
- Press F12 to open DevTools
- Navigate to the Console tab
- Look for red error messages
- Check the LiveCodes integrated console in the tools pane
Verify Language Selection
Verify Language Selection
Ensure you’ve selected the correct language for each editor:
- Click the language selector in each editor tab
- Check that the file extension matches your code
- For frameworks, ensure dependencies are loaded
Clear Cache and Reload
Clear Cache and Reload
Sometimes cached assets can cause issues:Or use hard reload: Ctrl+Shift+R (Cmd+Shift+R on Mac)
Import and Module Issues
npm Package Import Errors
npm Package Import Errors
Problem: Package imports don’t work or show 404 errors.Solutions:
- Use bare imports (preferred):
- Check import maps in Project Info:
- Verify package exists on npm/jsDelivr
- Use specific versions:
Relative Import Issues
Relative Import Issues
Problem: Relative imports like
./utils.js don’t work.Solution: Use the script editor as a module:- Create your module in the script editor
- Import it using a custom filename from import maps
- Or use data URLs for component imports (Vue/Svelte)
Vue and Svelte SFCs can import other components as data URLs (v44+)
TypeScript Import Errors
TypeScript Import Errors
Problem: TypeScript shows red squiggles for valid imports.Solutions:
- HTTP imports: TypeScript errors for full URLs are now fixed (v44+)
- Data URL imports: Fixed in v44+
- Type definitions: May need to install
@types/packages
Duplicate React/Vue Instances
Duplicate React/Vue Instances
Problem: Multiple versions of React/Vue causing issues.Solution: LiveCodes automatically manages import maps to prevent duplicates (fixed in v43+), but you can verify:
- Check Project Info → Import Maps
- Ensure only one version is mapped
- Clear any custom import maps that might conflict
Editor Issues
Editor Not Loading
Editor Not Loading
Symptoms: White screen or loading spinner that doesn’t stop.Solutions:
- Check browser compatibility: Use modern browsers (Chrome, Firefox, Safari, Edge)
- Disable browser extensions: Some extensions block scripts
- Check network: Ensure CDN resources can load
- Try a different editor: Switch between Monaco, CodeMirror, or CodeJar
Auto-complete Not Working
Auto-complete Not Working
Problem: No IntelliSense or autocomplete suggestions.Causes & Solutions:
- Monaco only: CodeMirror has limited autocomplete
- TypeScript needed: For best autocomplete, use TypeScript
- Types loading: Wait for type definitions to download
- Vim mode: Some features limited in vim mode
Performance Issues
Performance Issues
Problem: Editor is slow or laggy.Solutions:
- Switch editors: Try CodeMirror instead of Monaco
- Disable features:
- Turn off format on save
- Disable Emmet
- Reduce autocomplete delay
- Close unused tools: Hide test pane, console if not needed
- Large files: Split code into smaller modules
Line Numbers Issues
Line Numbers Issues
Problem: Line numbers missing or incorrect.Solution: Check editor settings:
- Absolute line numbers (default)
- Relative line numbers (v40+)
- No line numbers option
Framework-Specific Issues
React Issues
React Issues
Common problems:
-
React 19 compatibility: Some libraries not yet updated
- React Native template modified for compatibility
- Use React 18 if needed:
import React from 'react@18'
-
JSX not compiling: Ensure file is
.jsxor.tsx - Hooks errors: Check React version and import
- React Compiler (v37+): Enabled by default in React template
Vue Issues
Vue Issues
Common problems:
- Multiple components: Use markup editor for second component (v43+)
-
Props inference: Types now inferred from
defineProps(v44+) - Import maps: Duplicate Vue instances prevented automatically
- SFC processing: CSS processors work in style blocks (v44+)
- Auto-complete: monaco-volar provides better DX (v44+)
Svelte Issues
Svelte Issues
Breaking changes:
-
Svelte 5 (v37+): Upgraded from Svelte 4
- Mostly compatible but has breaking changes
- See Svelte 5 release notes
- Multiple components: Use markup editor (v43+)
- SFC imports: Can import other SFCs via data URLs (v44+)
Tailwind CSS Issues
Tailwind CSS Issues
Version confusion:LiveCodes supports both v3 and v4:Not processing: Check that you’re in a CSS/style editor
- v4 (default): Use
@import "tailwindcss"; - v3 (legacy): Use
@tailwind base; @tailwind components; @tailwind utilities;
SDK & Embedding Issues
Playground Not Loading
Playground Not Loading
Problem: Embedded playground shows blank screen.Solutions:
- Check container: Ensure container has height
- Verify SDK import: Use correct CDN URL
- Check config: Validate configuration object
- Console errors: Check browser console for details
Config Not Applying
Config Not Applying
Problem: Configuration options not taking effect.Breaking changes (SDK v0.8.0):Old API (deprecated):New API:
Editor Not Updating
Editor Not Updating
Problem: This updates without reloading the entire editor.
setConfig doesn’t update content.Solution: Use content-only updates (v46+):Browser-Specific Issues
Firefox Issues
Firefox Issues
Known issues:
- Multiple re-renders: Fixed in v47 (sandbox v9)
- CORS errors: Fixed for jsdelivr API (v36+)
- External resources: Style issues fixed (v36+)
Mobile Issues
Mobile Issues
Solutions:
- Use auto editor mode: Automatically uses CodeMirror on mobile
- Touch gestures: May differ from desktop
- Performance: Consider simpler features for mobile
Getting Help
Check FAQ
Review frequently asked questions
GitHub Discussions
Ask the community for help
Report Bug
File an issue on GitHub
View Changelog
Check recent fixes and changes
When reporting issues, include:
- Browser and version
- LiveCodes version
- Minimal code reproduction
- Error messages and console logs