“Uncaught SyntaxError: Cannot use import statement outside a module” when importing ECMAScript 6

I’m using ArcGIS JSAPI 4.12 and wish to use Spatial Illusions to draw military symbols on a map. When I add milsymbol.js to the script, the console returns error Uncaught SyntaxError: Cannot use import statement outside a module` so I add type=”module” to the script, and then it returns Uncaught ReferenceError: ms is not defined … Read more