Using nothing but a simple sample from ESRI (StreamLayer using ArcGIS API for JavaScript and ArcGIS GeoEvent Processor for Server ) I get an error saying "require is undefined". I also get 'dojo is undefined' if I use the classic method (TOC ) but that example is not by the developers of ESRI.
This happens on a client machine, but works just fine on my machine as well.
I have tried compatibility mode on and off with no success: I keep getting the exact same error. If I use code that that use the 3.1 API it seems to work just fine. But there seems to e something about the new version of dojo in 3.12 that is causing errors for me.
Solved! Go to Solution.
Thank you for the helpful information. I found the cause:
I had to enable "Active Scripting" in Tool -> Internet Options -> Security Tab -> Custom Level
I also had to run-as-administrator IE to be able to change those settings.
I'm surprised that there wasn't an issue when running version 3.1 of ESRI's API.
Philip are you running the sample locally or are you testing via the developers.arcgis.com url?
Testing via the url.
Do you get the same errors with other samples? Here's a super simple one that would be good to test:
Yes, that also causes the exact same error I described. I have tried numerous other examples and they all fail in the same way, unless the API used is 3.1. All 3.12 examples I've tried have the same error.
Strange. I tested both samples on IE9 and it worked for me. It sounds like you have one IE9 machine where it works and one where it doesn't is that correct? If so maybe try comparing browser settings to see if there are any differences. Also look for any add-ons that may be enabled on the problem browser and try disabling them to see if the issue goes away.
That is correct. Do you have any suggestions on what settings may cause this. I don't see any add-on's for the browser.
Sorry not sure which settings may be causing the problem. For starters check that the document mode is the same on the problem browser as the one that works.
Do you get the errors when you try Esri's examples online in different browsers as well? Are you still getting require not defined?
No. The issue only happens in ie ever and only on the clients machine. Yes
the error still occurs.