ckeditor5-math icon indicating copy to clipboard operation
ckeditor5-math copied to clipboard

Not working with CKEditor v47: '@ckeditor/ckeditor5-engine' does not provide an export named 'LivePosition'

Open josefglatz opened this issue 2 months ago • 2 comments

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

  1. Update CKEditor5 from version 45.2.1 to 47.0.0 or 47.1.0
  2. Attempt to load the @isaul32/ckeditor5-math plugin
  3. 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

  • The plugin worked without issues in CKEditor5 version 45.2.1
  • Issue appears to be related to breaking changes introduced in v47.x or v46.x
  • Relevant releases checked: v47.0.0 and v47.1.0

josefglatz avatar Oct 21 '25 09:10 josefglatz

There is a helpful documentation which helps finding fixes for imports: https://ckeditor.com/docs/ckeditor5/latest/updating/nim-migration/migrating-imports.html

josefglatz avatar Oct 22 '25 09:10 josefglatz

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.

eliandoran avatar Oct 23 '25 10:10 eliandoran