Esri Loader, Dojo.js injection problems, cannot read property 'insertBefore' of null errors

1202
1
11-25-2019 10:55 AM
KrzysztofMroczek
New Contributor

In my Angular application I implemented map with Esri Loader. It is solution working on PRODUCTION SYSTEM.

I use Pusher.js for some communications. Randomly map does not show. I found that your dojo.js is trying to inject url to pusher script.. the screenshot for evidence. My question is how to workaround that problem. I guess dojo.js is wrong selecting script tag, for injecting your scripts to header tag.

RELATED GITHUB TICKET:

Cannot read property 'insertBefore' of null errors in Opera, Chrome, Mozilla, Safari. · Issue #196 ·... 

with no answer. 

TICKET CLOSED BY esri loader team with no solution:

Cannot read property 'insertBefore' of null errors in Chrome (only) · Issue #154 · Esri/esri-loader ... 

0 Kudos
1 Reply
BryanMc
Frequent Contributor

Hi @KrzysztofMroczek , did you ever find a solution to this? This just started happening to us recently as well. Any thoughts are appreciated. JS API 4.28 and issue is recent and in Edge/Chrome, but not FF.

0 Kudos