Hi
after migration from 4.11 to 4.12 my AGS java script website return this error when I.m using dojo.byid:
Uncaught (in promise) TypeError: dojo.byId is not a function
why?
I had the same issue when upgrading. Clearly the domReady event is firing prematurely, before dojo is fully ready. I just changed dojo.byId to window.getElementById to get around that bug.
Did you make any changes to the modules called and function arguments? Usually this error happens when the arguments are not in the same order as the modules.
Anjelina,
It is to hard to tell with seeing your code. It is unlikely that all you did was change the url from 4.11 to 4.12 and now receive this error.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.