Skip to content

Error after running manual tests with DLLs if DLLs are built in development modeΒ #12479

@psmyrek

Description

@psmyrek

πŸ“ Provide detailed reproduction steps (if any)

  1. Build DLLs in development mode: yarn run dll:build --dev.
  2. Run manual tests that require DLLs: yarn run manual -f ckeditor5.

βœ”οΈ Expected result

No error in the console.

❌ Actual result

Module parse failed: 'import' and 'export' may only appear at the top level (15204:20)
File was processed with these loaders:
 * ./node_modules/@ckeditor/ckeditor5-dev-tests/lib/utils/ck-debug-loader.js
You may need an additional loader to handle the result of these loaders.
|  */
|
> /* @if CK_DEBUG */  import { CKEditorError } from 'ckeditor5/src/utils';
|
| /**

❓ Possible solution

Probably this dynamic import causes this error log:

// @if CK_DEBUG // import { CKEditorError } from 'ckeditor5/src/utils';


If you'd like to see this fixed sooner, add a πŸ‘ reaction to this post.

Metadata

Metadata

Assignees

Labels

squad:platformIssue to be handled by the Platform team.type:bugThis issue reports a buggy (incorrect) behavior.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions