Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Browser console error while adding components to the page using plus icon

sivaramr5911311
Level 1
Level 1

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.

 

sivaramr5911311_0-1602047746151.png

sivaramr5911311_1-1602047905161.pngsivaramr5911311_2-1602047936474.png

 

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

1 Accepted Solution
Jineet_Vora
Correct answer by
Level 4
Level 4

Hello @sivaramr5911311,

Difficult to say what can be the issue but looks like some JS conflict.

Jineet

View solution in original post

3 Replies
Jineet_Vora
Correct answer by
Level 4
Level 4

Hello @sivaramr5911311,

Difficult to say what can be the issue but looks like some JS conflict.

Jineet

View solution in original post

santhosh_kumark
Community Advisor
Community Advisor

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

Umesh_Thakur
Community Advisor
Community Advisor

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