Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[content-carousel] console error - name has already been used #439

Open
cbeach47 opened this issue Sep 26, 2019 · 1 comment
Open

[content-carousel] console error - name has already been used #439

cbeach47 opened this issue Sep 26, 2019 · 1 comment
Labels
question Further information is requested

Comments

@cbeach47
Copy link
Contributor

cbeach47 commented Sep 26, 2019

Doesn't look to affect the UX, but an error is logged (confirmed with uPWC @ 1.28.0 and 1.33.2-SNAPSHOT ), and is present at least in Chrome and Firefox.

_baseMatchesProperty.js:33 

Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "content-carousel" has already been used with this registry
    at Module.5a74 (http://localhost:8080/resource-server/webjars/uportal__content-carousel/dist/content-carousel.min.js:40:84909)
    at n (http://localhost:8080/resource-server/webjars/uportal__content-carousel/dist/content-carousel.min.js:1:110)
    at http://localhost:8080/resource-server/webjars/uportal__content-carousel/dist/content-carousel.min.js:1:907
    at http://localhost:8080/resource-server/webjars/uportal__content-carousel/dist/content-carousel.min.js:1:922
@ChristianMurphy
Copy link
Member

@cbeach47 this has been seen before, it usually happens when a component script is imported twice in the portal.
The log is the expected behavior if the script is imported twice.

Could you do a grep/search in the portal implementation to see if content carousel script is imported twice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants