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

Avatar

Avatar
Level 1
sivaramr5911311
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
sivaramr5911311
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
sivaramr5911311
Level 1

06-10-2020

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back
Level 4
Jineet_Vora
Level 4

Likes

42 likes

Total Posts

45 posts

Correct reply

22 solutions
Top badges earned
Give Back
Ignite 1
Boost 5
Boost 3
Boost 25
View profile

Avatar
Give Back
Level 4
Jineet_Vora
Level 4

Likes

42 likes

Total Posts

45 posts

Correct reply

22 solutions
Top badges earned
Give Back
Ignite 1
Boost 5
Boost 3
Boost 25
View profile
Jineet_Vora
Level 4

07-10-2020

Hello @sivaramr5911311,

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

Jineet

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
MVP
Umesh_Thakur
MVP

Likes

147 likes

Total Posts

157 posts

Correct reply

53 solutions
Top badges earned
Validate 1
Applaud 25
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
MVP
Umesh_Thakur
MVP

Likes

147 likes

Total Posts

157 posts

Correct reply

53 solutions
Top badges earned
Validate 1
Applaud 25
Ignite 3
Ignite 1
Give Back 5
View profile
Umesh_Thakur
MVP

07-10-2020

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

 

Avatar

Avatar
Establish
MVP
santhosh_kumark
MVP

Likes

99 likes

Total Posts

111 posts

Correct reply

38 solutions
Top badges earned
Establish
Validate 1
Give Back 3
Give Back
Boost 50
View profile

Avatar
Establish
MVP
santhosh_kumark
MVP

Likes

99 likes

Total Posts

111 posts

Correct reply

38 solutions
Top badges earned
Establish
Validate 1
Give Back 3
Give Back
Boost 50
View profile
santhosh_kumark
MVP

07-10-2020

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