Issue in carousel authoring when added as resource

Avatar

Avatar
Validate 1
Level 2
salamswapnil
Level 2

Likes

6 likes

Total Posts

16 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Give Back
Ignite 1
Boost 5
Boost 3
View profile

Avatar
Validate 1
Level 2
salamswapnil
Level 2

Likes

6 likes

Total Posts

16 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Give Back
Ignite 1
Boost 5
Boost 3
View profile
salamswapnil
Level 2

16-04-2021

Hello community,

I am adding overridden carousel component as a resource like below.

<sly data-sly-resource="${'herobanner' @ resourceType='mysite/components/content/herobannercarousel'}"></sly>

Now when I try to author this carousel to add carousel items, it doesn't allow me to add. Nothing happens when I click on add button. It throws below js error in console.

Uncaught TypeError: Cannot read property 'path' of undefined
    at Array.self.find (core.js:909)
    at HTMLButtonElement.<anonymous> (clientlibs.js:175)
    at Vent._executeListenersAtElement (coralui3.js:4141)
    at Vent._executeBubbleListeners (coralui3.js:4250)

 carousel-dialog.png

But when I save dialog and then again open it to add items, it allows me to add items without any errors. I am observing this same behavior for core carousel component and we Retail carousel as well.

 

Thanks

Swapnil

Replies

Avatar

Avatar
Springboard
Level 7
KiranVedantam1992
Level 7

Likes

195 likes

Total Posts

213 posts

Correct reply

60 solutions
Top badges earned
Springboard
Give Back 5
Ignite 1
Affirm 50
Validate 1
View profile

Avatar
Springboard
Level 7
KiranVedantam1992
Level 7

Likes

195 likes

Total Posts

213 posts

Correct reply

60 solutions
Top badges earned
Springboard
Give Back 5
Ignite 1
Affirm 50
Validate 1
View profile
KiranVedantam1992
Level 7

16-04-2021

Hi @salamswapnil,

 

Is the same issue reproducible when you author the component individually? What does the error.log say? Please share the log for getting more info on the issue.

 

Also, check the parent component itself without adding a sub-component to check if there is any issue in its code.

 

Thanks,

Kiran Vedantam.

Avatar

Avatar
Validate 1
Level 2
salamswapnil
Level 2

Likes

6 likes

Total Posts

16 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Give Back
Ignite 1
Boost 5
Boost 3
View profile

Avatar
Validate 1
Level 2
salamswapnil
Level 2

Likes

6 likes

Total Posts

16 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Give Back
Ignite 1
Boost 5
Boost 3
View profile
salamswapnil
Level 2

16-04-2021

Hi @KiranVedantam1992, No this issue is only occurring when carousel is added as a resource. When added as individual component it works fine. There is nothing in the logs. Also parent component is working with other child components. You can reproduce this issue at your end with "we retail" carousel component if you have "we retail" project in your local.