Closed gadenbuie closed 5 months ago
Okay, it's not just duplicate component registry, we also assume jQuery is available in sidebar.ts
.
Okay, it's not just duplicate component registry, we also assume jQuery is available in
sidebar.ts
.
It turns out this is okay, beyond adding some noise in the console. The errors from trying to call $()
occur in event handlers and don't break functionality. The biggest issue is re-registering bslib components when they already exist on the page, that should be fixed by #1045.
This issue has been automatically locked. If you have found a related problem, please open a new issue (with a reproducible example or feature request) and link to this issue. :raising_hand: Need help? Connect with us on Discord or Posit Community.
This example from https://github.com/quarto-dev/quarto-cli/issues/9454
localhost/:1 Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "bslib-tooltip" has already been used with this registry at http://localhost:6054/issue-9454_files/libs/bslib-component-js-0.7.0/web-components.min.js:217:46 at Array.forEach ()
at http://localhost:6054/issue-9454_files/libs/bslib-component-js-0.7.0/web-components.min.js:217:19
at http://localhost:6054/issue-9454_files/libs/bslib-component-js-0.7.0/web-components.min.js:217:183