Problem/Motivation

Perhaps following #3527914: Use UMD installation method for CKEditor5 there are now 45 linting warnings on main:

Steps to reproduce

$ yarn lint:core-js-passing

core/modules/ckeditor5/js/ckeditor5_plugins/drupalEmphasis/src/drupalemphasisediting.js
  2:24  error  Unable to resolve path to module 'ckeditor5/src/core'  import/no-unresolved

core/modules/ckeditor5/js/ckeditor5_plugins/drupalEntityLinkSuggestions/src/linksuggestioncommand.js
  3:25  error  Unable to resolve path to module 'ckeditor5/src/core'   import/no-unresolved
  4:23  error  Unable to resolve path to module 'ckeditor5/src/utils'  import/no-unresolved

core/modules/ckeditor5/js/ckeditor5_plugins/drupalEntityLinkSuggestions/src/linksuggestionediting.js
  4:24  error  Unable to resolve path to module 'ckeditor5/src/core'    import/no-unresolved
  5:36  error  Unable to resolve path to module 'ckeditor5/src/typing'  import/no-unresolved

core/modules/ckeditor5/js/ckeditor5_plugins/drupalEntityLinkSuggestions/src/utils.js
  2:36  error  Unable to resolve path to module 'ckeditor5/src/typing'  import/no-unresolved

...

Proposed resolution

Replace import/no-extraneous-dependencies with import/no-unresolved in the affected files?

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3607174

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

longwave created an issue. See original summary.

longwave’s picture

As per https://ckeditor.com/docs/ckeditor5/latest/updating/nim-migration/custom... it looks like we should import everything from ckeditor5 instead of e.g. ckeditor5/src/core.

longwave’s picture

Status: Active » Closed (duplicate)
Related issues: +#3591974: Update import paths for CKEditor 5 v48

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.