Strange issue alert! In development mode, everything seems to be working fine. However, when I run it through dojoBuild, a particular modal is displaying inconsistent behavior.
At times, the error message 'undefined' is not a function pops up, suggesting that 'define' is undefined. But upon checking, 'define' appears to be defined and functioning properly as a function.
Here's a snippet of the code for the problematic modal (it's used twice on the page):
1 define([
2 "dojo",
3 "dojo/_base/declare",
4 "dojo/_base/lang",
5 "myapp/js/utils/globals"
13 ], function (
14 dojo,
15 declare,
16 lang,
17 globals
25 ) {
Has anyone encountered this issue before or have any insights into what might be causing it? Would providing more files be helpful?
If needed, here is my profile.