After following the installation instructions for ckeditor5-angular and ckeditor5-build-classic from this link, I encountered an error while building:
Error: node_modules/@types/ckeditor__ckeditor5-ui/src/editableui/editableuiview.d.ts:7:9 - error TS2379: Getter and setter accessors do not agree in visibility.
7 get _hasExternalElement(): boolean;
~~~~~~~~~~~~~~~~~~~
Error: node_modules/@types/ckeditor__ckeditor5-ui/src/editableui/editableuiview.d.ts:8:19 - error TS2379: Getter and setter accessors do not agree in visibility.
8 protected set _hasExternalElement(newValue: boolean);
~~~~~~~~~~~~~~~~~~~
The code snippet editableuiview.d.ts looks like this:
import { Locale } from "@ckeditor/ckeditor5-utils";
import View from "../view";
export default class EditableUIView extends View {
isFocused: boolean;
name: string;
get _hasExternalElement(): boolean;
protected set _hasExternalElement(newValue: boolean);
constructor(locale: Locale, editingView: View, editableElement?: HTMLElement);
}
I found a temporary solution by removing "protected" from the setter function. However, since this file is auto-generated in node_modules, this change is not permanent.
To address this issue permanently, I have created a typings.d.ts file as suggested on StackOverflow.
If you have any suggestions on how to resolve this error permanently, please let me know!
Thank you for your help!