4.12 + dojo.byId is not a function

316
3
08-07-2019 11:48 PM
anjelinaponkerat
Occasional Contributor II

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?

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

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.

KenBuja
MVP Honored Contributor

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.

XavierIrias
New Contributor III

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.

0 Kudos