Angular JS Error "SCRIPT5007: Expected Object" in IE9 and IE10 when loading Angular library

I am developing an AngularJS application that should run on Firefox and IE 9 and IE 10. I am using the latest version of the angularjs library (now it is 1.3.15). The server server is written in Java in the JavaEE platform, and the server runs on GlassFish, and our computers run windows 7.

Everything works fine when I start the server locally on my computer and access my application using http: // localhost: 8080 .

But in IE9 and IE10, when I try to download the application from my server using my IP address (something like http://191.10.10.200:8080 ), then the angularJS library will not be able to load. This results in an error:

SCRIPT5007: expected object angular.min.js, line 7 character 218

Could this be a problem with IE security settings? Or a network? I was looking for similar problems, but no one was talking about this problem. Please help me if you have an idea how to solve this.

+7
javascript angularjs internet-explorer internet-explorer-9 internet-explorer-10
source share
1 answer

I had the same error that occurred only in IE9 and IE10 when loading a page requiring AngularJS.

My page simply did not have the DOCTYPE header at the top of the page:

<!DOCTYPE html> 

As soon as I added it, AngularJS loaded for me just fine.

+2
source share

All Articles