Recently I’ve been having this issue when my page loads and click one of the buttons right after is done, I get unable to find errors. It happens with my custom functions within the script and objects. If I refresh the page, then issue goes away.
Any ideas as to what could be causing thins and how to prevent?
Hmm weird. Ok. You could try to put them in a PSM1 file and then add that PSM1 path to the modules for the environment used by your dashboard. This would cause the module to load before anything else.