tinymce / tinymce-angular

Official TinyMCE Angular Component
MIT License
320 stars 93 forks source link

Error - ^5.0.0 under Angular 13.1 - Cannot find module 'tinymce' or its corresponding type declarations #280

Closed xprojects-de closed 2 years ago

xprojects-de commented 2 years ago

Error: node_modules/@tinymce/tinymce-angular/editor/Events.d.ts:2:41 - error TS2307: Cannot find module 'tinymce' or its corresponding type declarations. Error: node_modules/@tinymce/tinymce-angular/editor/editor.component.d.ts:4:60 - error TS2307: Cannot find module 'tinymce' or its corresponding type declarations.

Angular 13.1.2 with common dependencies

Other packages:

Version @tinymce/tinymce-angular ^4.0.0 still works under 13.1 but without Ivy...

Thanks

exalate-issue-sync[bot] commented 2 years ago

Ref: INT-2744

jscasca commented 2 years ago

@xprojects-de I believe you just need to install tinymce to get the correct types

xprojects-de commented 2 years ago

Thanks. It´s woking...

Trapulo commented 2 years ago

I have same problem but I cannot fix it :( imported:

"tinymce": "5.10.3",
"@tinymce/tinymce-angular": "^5.0.1",
alastair-todd commented 2 years ago

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

jscasca commented 2 years ago

@alastair-todd the latest version of the wrapper does not use RawEditorSettings as it needs to work with different versions of the Editor. Having any version installed should do the trick with @tinymce/tinymce-angular v^6.0.1

@Trapulo have you tried the latest version?

alastair-todd commented 2 years ago

@jscasca yes correct thanks. The readme probably needs an update.

Any reason for not bundling tinymce up with the angular package? I does seem an easy mistake to make....

jscasca commented 2 years ago

The latest version comes with the Tinymce v6 dependency so it bundles together but allows you to keep you Tinymce v5 dependency if you have that already installed.

anasmak04 commented 3 months ago

Try with the latest version that works for me npm install @tinymce/tinymce-angular@7.0.0