- Home
- Forum
- Angular - EJ 2
- Adding rich text editor to a synfusion planner demo does not work
Adding rich text editor to a synfusion planner demo does not work
https://github.com/syncfusion/ej2-showcase-angular-appointment-planner <<<demo project
Following along the most basic setup: And it works on a fresh project but no on the demo project
https://ej2.syncfusion.com/angular/documentation/rich-text-editor/getting-started?cs-save-lang=1&cs-lang=ts#adding-rich-text-editor-component
added this into imports of app module :
The following error is produced no matter where I place the HTML part of the code
core.mjs:11809 ERROR TypeError: str.match is not a function
at evalExp (ej2-base.es5.js:9525:23)
at compile$1 (ej2-base.es5.js:9503:29)
at Engine.compile (ej2-base.es5.js:9878:16)
at compile$$1 (ej2-base.es5.js:9731:30)
at RichTextEditor.setValue (ej2-richtexteditor.es5.js:34093:47)
at RichTextEditor.setContainer (ej2-richtexteditor.es5.js:32523:18)
at RichTextEditor.preRender (ej2-richtexteditor.es5.js:32506:14)
at Component.appendTo (ej2-base.es5.js:7439:18)
at FormBase.ngAfterViewInit (form-base.js:76:39)
at callHookInternal (core.mjs:3599:14)
We suspect that the reported issue occurred due to the duplicate packages or due to the package cache in your application. Please follow the below steps to resolve this,
- Go to the ‘node_modules’ folder, find the ‘@syncfusion’ folder and delete it.
- Now delete the ‘package-lock.json’ file from the root directory of the project.
- Now run command ‘npm cache clean –force’.
- The run the command ‘npm install’.
- After the dependencies are installed, run the application.
You were correct it is working now but I have a new issue, the licensing worked out of the box for some reason on that project straight using the gihub repo I think.
Now it broke and I am attempting to set up licensing how I normally do but it is not working for some reason:
I added this to main.ts
Please not that github repo had this "*" for package versions I assume it just installs the latest?
a
Hi Jonas Blazinskas,
Query "Please not that github repo had this "*" for package versions I assume it just installs the latest?"
Yes adding "*" for package versions will install the latest version of that Syncfusion package.
Regards,
Vinitha
- 3 Replies
- 2 Participants
-
JB Jonas Blazinskas
- Jan 21, 2024 11:49 PM UTC
- Feb 26, 2024 06:33 AM UTC