ckeditor4-angular icon indicating copy to clipboard operation
ckeditor4-angular copied to clipboard

Build issue due to TS accessor errors

Open f1ames opened this issue 5 years ago • 2 comments

Are you reporting a feature request or a bug?

Bug

Provide detailed reproduction steps (if any)

When building ckeditor4-docs, webpack Angular compilation (starting from 2.0.0 version) throws An accessor cannot be declared in an ambient context TS errors:

image

The lines to blame are:

https://github.com/ckeditor/ckeditor4-angular/blob/6313ee68190976157b870662f62ff435057511ee/dist/ckeditor.component.d.ts#L42-L43

https://github.com/ckeditor/ckeditor4-angular/blob/6313ee68190976157b870662f62ff435057511ee/dist/ckeditor.component.d.ts#L50-L51

It might be reproduced on this commit https://github.com/ckeditor/ckeditor4-docs/commit/d5ddece92222fb8481a9cc89b99c92c4357b10e9. Seems it may be related to TS issue - https://github.com/microsoft/TypeScript/issues/33939

It also means, any project using Angular integration in a similar manner as CKEditor 4 docs may have similar issues.

f1ames avatar Sep 24 '20 13:09 f1ames

The workaround could be disabling some TS checks with:

"compilerOptions": {
    "skipLibCheck": true
}

in tsconfig.json file (helped in the docs case - see ckeditor/ckeditor4-docs@4ecd6f3).

f1ames avatar Sep 24 '20 13:09 f1ames

I've got the same issue

nguacon90 avatar Aug 17 '21 08:08 nguacon90