Skip to content

Error: Duplicate identifier 'type'. Module '"./*"' has no exported member #414

@madieukhang

Description

@madieukhang

Hi I'm using angular v11 and install CKEditor5 "@ckeditor/ckeditor5-angular": "^4.0.0",
I'm using the Document editor build "@ckeditor/ckeditor5-build-decoupled-document": "^34.2.0" and work normally
Now i want using custom build for using more plugins and create an editor build using Online Builder follow step by step on Docs and got this error:

Error: node_modules/@ckeditor/ckeditor5-utils/src/index.d.ts:9:27 - error TS2300: Duplicate identifier 'type'.

9 export { default as diff, type DiffResult } from './diff.js';
                            ~~~~


Error: node_modules/@ckeditor/ckeditor5-utils/src/index.d.ts:9:27 - error TS2614: Module '"./diff.js"' has no exported member 'type'. Did you mean to use 'import type from "./diff.js"' instead?

9 export { default as diff, type DiffResult } from './diff.js';
                            ~~~~
Error: node_modules/@ckeditor/ckeditor5-widget/src/widget.d.ts:9:29 - error TS1005: ',' expected.

9 import { type Element, type Node } from '@ckeditor/ckeditor5-engine';
                              ~~~~


Error: node_modules/@ckeditor/ckeditor5-widget/src/widgetresize.d.ts:10:10 - error TS2300: Duplicate identifier 'type'.

10 import { type Element, type ViewContainerElement } from '@ckeditor/ckeditor5-engine';
            ~~~~
.....

image

I try to update newest "@ckeditor/ckeditor5-build-decoupled-document" and got same error anyone know about error?

Please help me, i will send more about this error if you need
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions