Can't create RTE - "Cannot call a class as a function"

Hello,


I'm trying to get the richtext editor to work. Project is in Angular 9 and has es5 as target. All i'm getting are these errors:


The code i'm trying to run is copied from the documentation here Getting started with Angular RichTextEditor component - Syncfusion.

Can someone please help me identify the issue here?


Edit:
I narrowed the problem down. If I create a new project with angular 9 und set it to es5, it does work. But I found a reproduction sample in your forum https://www.syncfusion.com/downloads/support/forum/156857/ze/ng11ejs18_fba5163a which is set up with angular 11 and es5. Changing the target to es2015 or es2020 does solve the issue. But unfortunately in my companies angular 9 project, we can't change the target to es2015+. But maybe you guys can indentify why it's working on a fresh angular 9 - es5 project, but not on the angular 11 - es5 project.

1 Reply 1 reply marked as answer

IS Indrajith Srinivasan Syncfusion Team June 15, 2021 12:13 PM UTC

Hi Emx, 
 
Greetings from Syncfusion support, 
 
We have validated your reported query “But maybe you guys can indentify why it's working on a fresh angular 9 - es5 project, but not on the angular 11 - es5 project” and able to reproduce the reported issue in the angular 11 project shared in the forum. With the later angular 9 versions from 10 and 11, the target recommended versions from angular are between “es2016” to ”es2020”. Check the below angular documentation for reference. 
 
 
Regards, 
Indrajith 


Marked as answer
Loader.
Up arrow icon