'Getting error trying to use TinyMCE cloud in my Angular 13 app - Module 'tinymce' has no exported member 'RawEditorSettings'

I have created a new angular app and have installed these:

npm install --save @tinymce/tinymce-angular npm install --save @types/tinymce

I've included the EditorModule in app.module.ts

I have correctly included my apiKey in the element

When I try to run (with npm start), I get this error:

Error: node_modules/@tinymce/tinymce-angular/editor/editor.component.d.ts:4:35 - error TS2305: Module '"tinymce"' has no exported member 'RawEditorSettings'.

4 import { Editor as TinyMCEEditor, RawEditorSettings } from 'tinymce';

Any help I get will be much appreciated



Solution 1:[1]

v5 of tinymce was the trick for me. Seems RawEditorSettings has been removed from v6

 npm i [email protected] 

Solution 2:[2]

Must be using an old version. If you are using version 5 of the wrapper, having tinymce v5 as a dependency should do the trick in case types are not right. Version 6 of the wrapper should work regardless of the tinymce version running.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jenson-button-event
Solution 2 Guest101