ckeditor / ckeditor5-angular

Official CKEditor 5 Angular 5+ component.
https://ckeditor.com/ckeditor-5
Other
202 stars 110 forks source link

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

Open madieukhang opened 5 months ago

madieukhang commented 5 months ago

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