ui-router icon indicating copy to clipboard operation
ui-router copied to clipboard

version 0.2.6 error

Open casoetan opened this issue 12 years ago • 15 comments

Uncaught TypeError: Cannot call method 'toString' of null

happens, had to revert to 0.2.5

This has to do with doAnimate.toString

casoetan avatar Dec 07 '13 13:12 casoetan

Same here, couldn't figure out why so far

steffenmllr avatar Dec 07 '13 14:12 steffenmllr

It's fixed in HEAD.

nateabele avatar Dec 07 '13 14:12 nateabele

not fixed still gives that error

TypeError: Cannot call method 'toString' of null
    at renderer (http://127.0.0.1:9000/libs/angular-ui-router/release/angular-ui-router.js:1500:24)
    at updateView (http://127.0.0.1:9000/libs/angular-ui-router/release/angular-ui-router.js:1532:24)
    at eventHook (http://127.0.0.1:9000/libs/angular-ui-router/release/angular-ui-router.js:1518:17)
    at Scope.$broadcast (http://127.0.0.1:9000/libs/angular/angular.js:11972:28)
    at $state.transition.resolved.then.$state.transition (http://127.0.0.1:9000/libs/angular-ui-router/release/angular-ui-router.js:1290:22)
    at wrappedCallback (http://127.0.0.1:9000/libs/angular/angular.js:10696:81)
    at http://127.0.0.1:9000/libs/angular/angular.js:10782:26
    at Scope.$eval (http://127.0.0.1:9000/libs/angular/angular.js:11697:28)
    at Scope.$digest (http://127.0.0.1:9000/libs/angular/angular.js:11525:31)
    at Scope.$delegate.__proto__.$digest (<anonymous>:844:31) 

casoetan avatar Dec 07 '13 15:12 casoetan

I also get this error

tamtakoe avatar Dec 07 '13 17:12 tamtakoe

See https://github.com/angular-ui/ui-router/blob/master/release/angular-ui-router.js#L1532

Is there an assumption that animate && doAnimate will always return a boolean? Because there is as case I have where animate is null and doAnimate is true. In Chrome at least null && true resolves to null, and you can't call .toString() on null.

thisgeek avatar Dec 07 '13 18:12 thisgeek

Same here . . . reverting back to 0.2.5

jewelsjacobs avatar Dec 07 '13 22:12 jewelsjacobs

Having the same error.

bogdanrybak avatar Dec 07 '13 23:12 bogdanrybak

+1

melcher avatar Dec 08 '13 01:12 melcher

Can anyone explain to me how this is not a duplicate of #649? (Which definitely is fixed in HEAD).

nateabele avatar Dec 08 '13 03:12 nateabele

@nateabele This is definitely a dupe of #649. Is there anything I can do to help roll out a minor release with this fix?

duncanbeevers avatar Dec 08 '13 08:12 duncanbeevers

Still borked with latest master: http://plnkr.co/edit/DHxGpwHzF4D1JooRV6rT?p=preview

Thinkscape avatar Dec 08 '13 11:12 Thinkscape

It's fixed but you have to build it. Get master and run "npm install && grunt build" and get file from /build

If using Bower you can get master with that, run build command and change release to build in your link till it's updated.

jasonals avatar Dec 08 '13 11:12 jasonals

@Thinkscape The copy your Plunkr links to says "release" right in the file path. That should be a subtle cue.

nateabele avatar Dec 08 '13 14:12 nateabele

@duncanbeevers Thanks. Mainly at this point I just need to figure out how to trick Karma into running the test suite against multiple versions of Angular.

nateabele avatar Dec 08 '13 14:12 nateabele

Ah, yeah. I missed the fact that dist versions here are not automatically built and committed to the repo.

Thinkscape avatar Dec 09 '13 08:12 Thinkscape