I have created following sample where I am loading ArcGIS Javascript API 4.27 and D3.js (ver 7) using the Script tag.
https://codepen.io/b2810s/pen/NWebbze
This gives an error on the console related to multipleDefine.
Any idea how to avoid the conflict of the class names between the libraries?
If I change the order of loading where D3.js is loaded first and then ArcGIS Javascript API 4.27.,The map is loaded successfully in that case. However, I believe it may fail in some other part of the code with D3.js.
What is a best practice to write this code so it doesn't create any conflict with ArcGIS Javascript API?