I'm trying to modify the gihub sample at GitHub - Esri/angular-cli-esri-map at arcgis-webpack-angular and simply add a feature layer. However, when I do that I get the Failed to execute 'importScripts' on 'WorkerGlobalScope' error.
DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'http://localhost:4200/arcgis-js-api/views/2d/tiling/TileCoverage.js' failed to load.
at Function.injectUrl (https://js.arcgis.com/4.15/dojo/dojo-lite.js:6:127)
This is mentioned on the github site and I've tried to follow the solution to install the external loader but the instructions are not very clear. I've simply copied the external loader and pasted it into my constructor. This has no effect however. I've tried with v4.15 and v4.16 and get the same result. I suspect it has something to do with dojo folder that it can't find.
Can anyone offer some clear guidance on how to use the angular cli map with webpack particularly how to get the loaders to work? Thanks so much.
Allison Davis
Andy Gup