Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

1.2.0-rc.2 IE8 TypeError: Object doesn't support this property or methodundefined #3971

Closed
RomanMinkin opened this issue Sep 11, 2013 · 11 comments

Comments

@RomanMinkin
Copy link

Hello,

Error appears in IE8 when using $http with 1.2.0-rc.2/angular.min.js

TypeError: Object doesn't support this property or methodundefined

Version 1.2.0rc1/angular.min.js works fine.

Update
I uploaded code similar to my production:

I also use angular-route.js, unfortunately EI8's console doesn't help to catch the error.

@pkozlowski-opensource
Copy link
Member

@RomanMinkin we will really need more info here. As a bare minimum an offensive code snippet and a stactrace from the unminified version.

@RomanMinkin
Copy link
Author

@pkozlowski-opensource, sure i updated the first post with working examples so you can try in IE8.

@cateland
Copy link

Hello the problem is coming from angular-route.js check angular-ui/ui-router@d2ced6b

@petebacondarwin
Copy link
Contributor

@cateland - you referenced uiRoute not ngRoute, which is what @RomanMinkin refers to here. Looking inside angular-route.js there is no use of obj.forEach. There is probably some other call to a method that doesn't exist in IE8 somewhere in the code base.
The best way to track this down is to cut down the failing code to the absolute minimum.

@ghost ghost assigned IgorMinar Sep 19, 2013
@IgorMinar
Copy link
Contributor

I can repro the issue with http://privatebay.ru/angular/issue-3971/1.2.0-rc.2.html

I'm looking into this.

@IgorMinar
Copy link
Contributor

In the future, please create code snippets that don't require custom backend. I was able to reproduce your error locally but it took a long time trying to figure out what the app actually did. In the end, I was left with about 15 lines of html and js code that reproduced the error.

@RomanMinkin
Copy link
Author

@IgorMinar , got you, i'll. Thanks.

IgorMinar added a commit to IgorMinar/angular.js that referenced this issue Sep 20, 2013
This fixes the "TypeError: Object doesn't support this property or method" error on IE8,
when view templates contain leading white-space.

Closes angular#3971
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this issue Sep 25, 2013
This fixes the "TypeError: Object doesn't support this property or method" error on IE8,
when view templates contain leading white-space.

Closes angular#3971
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this issue Jan 27, 2014
This fixes the "TypeError: Object doesn't support this property or method" error on IE8,
when view templates contain leading white-space.

Closes angular#3971
@timelf123
Copy link

👍 any update on a fix?

@cbier
Copy link

cbier commented Feb 19, 2014

Yeah looks like it was fixed with commit 255e8c1. I'm trying to find out what release that was put in

@cbier
Copy link

cbier commented Feb 19, 2014

It was included in 1.2.0-rc.3 ferocious-twitch (2013-10-14)

@timelf123
Copy link

thanks @cbier

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.