password22
@password22

Почему при установке Ckeditor в Angular вылазит ошибка 'ckeditor' is not a known element?

Добрый вечер. Я сделал всё по инструкции, перепроверил через видео на ютуб, но у меня всё равно вылазит эта ошибка
Оф документация: https://ckeditor.com/docs/ckeditor5/latest/install...
Ошибка
'ckeditor' is not a known element:
1. If 'ckeditor' is an Angular component, then verify that it is part of this module.
2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.ngtsc(-998001)

628673da0da51890321342.png

При попытке компиляции пишет это
Build at: 2022-05-19T16:52:36.763Z - Hash: 8bdff6040e12a0ae - Time: 1618ms

Error: node_modules/@ckeditor/ckeditor5-angular/ckeditor.component.d.ts:8:9 - error TS2687: All declarations of 'CKEDITOR_VERSION' must have identical modifiers.

8         CKEDITOR_VERSION?: string;
          ~~~~~~~~~~~~~~~~


Error: node_modules/@ckeditor/ckeditor5-angular/ckeditor.component.d.ts:8:9 - error TS2717: Subsequent property declarations must have the same type.  Property 'CKEDITOR_VERSION' must be of type '"32.0.0"', but here has type 'string | undefined'.

8         CKEDITOR_VERSION?: string;
          ~~~~~~~~~~~~~~~~

  node_modules/@types/ckeditor__ckeditor5-utils/src/version.d.ts:5:9
    5         CKEDITOR_VERSION: typeof version;
              ~~~~~~~~~~~~~~~~
    'CKEDITOR_VERSION' was also declared here.


Error: node_modules/@types/ckeditor__ckeditor5-utils/src/version.d.ts:5:9 - error TS2687: All declarations of 'CKEDITOR_VERSION' must have identical modifiers.

5         CKEDITOR_VERSION: typeof version;
          ~~~~~~~~~~~~~~~~


Error: src/app/note/note.component.html:4:18 - error TS2741: Property 'create' is missing in type 'typeof import("C:/Users/meowo/source/repos/MyNotes/node_modules/@types/ckeditor__ckeditor5-build-classic/index")' but required in type 'EditorConstructor'.

4       <ckeditor [editor] = "editor"></ckeditor>        
                   ~~~~~~

  src/app/note/note.component.ts:8:16
    8   templateUrl: './note.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component NoteComponent.


версии из package.json
6286765d2ae05673125757.png
  • Вопрос задан
  • 260 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы
23 апр. 2024, в 19:05
15000 руб./за проект
23 апр. 2024, в 19:01
7000 руб./за проект
23 апр. 2024, в 18:47
10000 руб./за проект