Not working with CKEditor v47: '@ckeditor/ckeditor5-engine' does not provide an export named 'LivePosition'
Bug Report
Description
The CKEditor5 math plugin fails to load due to a missing export in the @ckeditor/ckeditor5-engine module.
Error Message
Failed to load CKEditor5 module @isaul32/ckeditor5-math
SyntaxError: The requested module '@ckeditor/ckeditor5-engine' does not provide an export named 'LivePosition'
Environment
- CKEditor5 Version: 47.0.0 / 47.1.0
- Plugin: @isaul32/ckeditor5-math
- Previous Working Version: CKEditor5 45.2.1
Steps to Reproduce
- Update CKEditor5 from version 45.2.1 to 47.0.0 or 47.1.0
- Attempt to load the
@isaul32/ckeditor5-mathplugin - Error occurs during module import
Expected Behavior
The math plugin should load successfully as it did in version 45.2.1.
Actual Behavior
The application fails to load the math plugin with a SyntaxError indicating that LivePosition is no longer exported from @ckeditor/ckeditor5-engine.
Additional Context
There is a helpful documentation which helps finding fixes for imports: https://ckeditor.com/docs/ckeditor5/latest/updating/nim-migration/migrating-imports.html
Here's a version that supports the latest CKEditor version: https://github.com/TriliumNext/Trilium/tree/main/packages/ckeditor5-math
It's not packaged since it's part of our application.