Hi All,
I get a browser console error when I try to add components to the page. This happens when I use the plus icon. When I double click on the parsys area to add components, it works fine. But when I use the plus icon, it doesn't work and shows this error.
Also, this error happens only when I have an experience fragment in the page.
When I delete the experience fragments, im able to add the components using plus icon. Does anyone have any idea on this and how it can be resolved?
Thanks,
Siva
Solved! Go to Solution.
Views
Replies
Total Likes
Hello @sivaramr5911311,
Difficult to say what can be the issue but looks like some JS conflict.
Jineet
Hello @sivaramr5911311,
Difficult to say what can be the issue but looks like some JS conflict.
Jineet
Hi @sivaramr5911311 ,
There are two possibilities.
1. Try checking there are required js library for that function which is throwing error in console.
2. indexOf is a method that you find on strings not numbers. Try converting it to Strings.
Please follow this link https://stackoverflow.com/questions/36483151/uncaught-typeerror-indexof-is-not-a-function
hope this will resolve the issue.
Regards,
Santosh
Normally what happens that we need to use xfpage structure component for experience fragments and we add only those clientlibs, those are required for experience fragments, to populates its look and feel or to perform a task.
So may be one or some of the clientlibs will have a conflict or dependency resolution issue so that can be validated once.
As I can see you are using dispatcher url to author the page so it can be checked once with the IP or host name with port.
OR you can invalidate and rebuild the clientlibs on http://localhost:4502/libs/granite/ui/content/dumplibs.rebuild.html
I think this will help.
Regards
Umesh Thakur