Cannot read property 'insertBefore' of null errors in Opera, Chrome, Mozilla, Safari.
See original GitHub issueEsri-Loader Team redirects me here. Started issue closed without any help answer: https://github.com/Esri/esri-loader/issues/154
Expected behavior User should see map always without any limitations.
Project setup - angular, esri-loader v2.6.0, arcgis js ver. 4.13
Steps to reproduce Create a localhost server however you choose with a simple esri-loader implementation.
loadModules(["esri/Map", "esri/views/MapView", "esri/layers/WebTileLayer", "esri/Basemap", "esri/geometry/support/webMercatorUtils", "esri/geometry/Point", "esri/layers/GraphicsLayer", ], {}).then (([ Map, MapView, WebTileLayer, Basemap, webMercatorUtils, Point, GraphicsLayer] ) => { console.log("MapView:" + MapView)
The rest of the code doesn’t really matter because the error happens during the loading/fetching of the resource files.
Actual behavior If a developer or CLIENT ON PRODUCTION refreshes the map frequently while making changes and testing, they can encounter an error originating in the dojo.js script used by the loader.
Resources downloaded when everything goes fine:
Resources downloaded on error:
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top GitHub Comments
Do you have a repro app this happens with? This looks like the AMD loader can’t add the scripts to the page during load for some reason, but I’m unsure why that would happen. This probably happens here.
I tried with angular-cli and cra without issue after multiple refreshes.
This issue has been automatically closed due to inactivity. If you need additional assistance please contact Esri Technical Support.