We have used the Maps SDK for JavaScript to create a map app using the ArcGIS Webpack plugin. We are not copying the assets locally. We are using some of the widget in the map app, like the sketch tool which mainly surfaced this issue it does not display on the screen.
When we load the map viewer component, it throws an Uncaught Type error: Illegal constructor for the Calcite components.
When reading through documentation it does not explicitly specify that the calcite-components need to be imported for the sketch tool. However following the documentation for Calcite Design System in ArcGIS Developer doc it mentions that we need to invoke defineCustomElements function from the @esri/calcite-components.
With this update we see a different error but it still does not load the sketch tool.
Uncaught (in promise) DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "calcite-icon" has already been used with this registry.
When using library directly from the CDN the app works as expected the sketch tool loads.
I would highly appreciate help on this if anyone has faced this issue, or has any advice or recommendation.