JS ReferenceError: __ is not defined but Only on a Specific Web App. All Others Don't Throw this Error?

894359
894359 used Ask the Experts™
on
I'm trying to figure out why I'm getting an error only on a specific website? We include our tag management code on our 3rd party web apps. I have never had any issues and the same code is running on a bunch of other web apps with no issue but now I'm getting an error only on a specific site?  If you go to the site ( click  here to see ) you'll notice in the dev. console that it throws an error of:

satelliteLib-8b0957229e4e0b480ac27c82c946e106ec00b3ce-staging.js:14 Uncaught ReferenceError: __ is not defined

and in the file it is the underscore in this code
t.push(n)}):__.map(s,fu

Open in new window


I have no idea why this only happens on this web app?  FYI, if you want to see the site properly, you have to  add "#testdtm" in place of the "#testnhd" and reload the page . These qualifiers set two flags in local storage. You will then have the app set-up properly but get the error. The same files are serverd to many 3rd party sites but for some reason, it throws an error only here? Any insight/help is appreciated.

Thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
If you have ruled out invalid caches, the only other possibility is that something else in the website's coding interferes with lodash or whatever initializes that underscore as an object.
 
Divide and conquer is the key to winning.

Author

Commented:
I'm trying out a JS Script Blocker plugin to see if I can isolate the issue.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial