So, first, you need to compile your code to es5 and then run the node server file that way, it will work fine. In my source code hovering item.meta.url in VSCode tells me:. Check out the following start project that demonstrates how such a setup does look like: GitHub … I'm using ArcGIS JSAPI 4.12 and wish to use Spatial Illusions to draw military symbols on a map. another chunk imported it or a script containing the module was loaded). 2020-04-17T16:35:48.096847+00:00 app[web.1]: SyntaxError: Cannot use import statement outside a module @brianwfl88: ES6 import module only works in (bundler) like webpack. Does "Ich mag dich" only apply to friendship? : Thanks for contributing an answer to Stack Overflow! There's no shortage of content at Laracasts. It looks like you should be able to load the dist version of this file to have ms defined on the window. Just add .pack between the name and the extension in the