I am building custom widget which wraps react component that is loaded via script tag inside widget.tsx file of custom widget.
The widget is working fine when it is used with blank templates of Experience builder. however when used in different templates like Webappbuilder classic, mapcentric etc, widget is not loading and observed issuse in console like below
There is likely something in your widget that uses the same variable name as something in the ESRI code. Try following the links in the console errors and renaming any variables in conflict.
A related error was fixed this way.
https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojoloader-multipledefine-error-w...