Overview
This guide covers common issues you might encounter when using Yoopta Editor and provides solutions to resolve them quickly.Installation Issues
Module not found: Can't resolve '@yoopta/editor'
Module not found: Can't resolve '@yoopta/editor'
- Package not installed
- Incorrect import path
- Node modules cache issue
-
Install the package:
-
Clear node modules and reinstall:
-
Check your import statement:
TypeScript errors after installation
TypeScript errors after installation
- Restart your TypeScript server (VS Code: Cmd+Shift+P → “Restart TS Server”)
-
Ensure your
tsconfig.jsonincludes: -
Clear TypeScript cache:
Peer dependency warnings
Peer dependency warnings
Editor Initialization
Editor renders but is empty
Editor renders but is empty
- Initial value not set
- Value format incorrect
- Plugins not registered
-
Set initial value:
-
Or set value after creation:
-
Verify value format:
TypeError: Cannot read property 'insertBlock' of undefined
TypeError: Cannot read property 'insertBlock' of undefined
Warning: Multiple editors detected on the same page
Warning: Multiple editors detected on the same page
Content & Rendering
Content not persisting after page reload
Content not persisting after page reload
Images not loading
Images not loading
- Invalid image URL
- CORS issues
- Missing upload handler
-
Verify image URLs are accessible:
-
Implement upload handler:
-
Check CORS headers on your image server:
Placeholder not showing
Placeholder not showing
-
Set global placeholder:
-
Set per-element placeholder:
-
Ensure theme CSS is imported:
Blocks appear unstyled
Blocks appear unstyled
-
Apply theme to plugins:
-
Or import CSS manually:
Interaction Issues
Toolbar not appearing
Toolbar not appearing
- Toolbar component not rendered
- CSS positioning issue
- Z-index conflict
-
Ensure toolbar is rendered as child:
-
Check z-index:
-
Verify selection is active:
Cannot focus editor / click doesn't work
Cannot focus editor / click doesn't work
- Conflicting click handlers
- CSS pointer-events issue
- Editor in read-only mode
-
Check read-only mode:
-
Verify CSS isn’t blocking clicks:
-
Use autoFocus prop:
Slash command menu not opening
Slash command menu not opening
Drag and drop not working
Drag and drop not working
Performance Issues
Slow typing / laggy editor
Slow typing / laggy editor
- Editor not memoized
- Too many re-renders
- Large document
- Heavy plugins (Code, Table)
-
Memoize editor instance:
-
Debounce onChange handler:
-
Use production build:
- For large documents, implement pagination or lazy loading.
Memory leak warnings
Memory leak warnings
Plugin Issues
Custom plugin not working
Custom plugin not working
- Incorrect plugin structure
- Missing required properties
- Plugin not registered
Plugin appears in slash menu but doesn't insert
Plugin appears in slash menu but doesn't insert
Browser-Specific Issues
Issues in Safari
Issues in Safari
Copy/paste not working
Copy/paste not working
- Browser permissions
- Clipboard API not available
- HTTPS required
-
Use HTTPS (required for Clipboard API):
- Check browser permissions for clipboard access
-
Fallback for older browsers:
Build & Deployment
Build fails with 'process is not defined'
Build fails with 'process is not defined'
Large bundle size
Large bundle size
- Including unused plugins
- Not using tree-shaking
-
Only import plugins you use:
-
Analyze bundle:
-
Use dynamic imports for heavy plugins:
Getting Further Help
If your issue isn’t covered here:- Search existing issues: GitHub Issues
- Ask the community: GitHub Discussions
- Check examples: Example implementations
- Report a bug: Create an issue
When Reporting Issues
Please include:- Yoopta Editor version
- React version
- Browser and OS
- Minimal reproduction code
- Steps to reproduce
- Expected vs actual behavior
- Console errors (if any)