# IONIC beta 12 strange error

**URL:** <https://forum.ionicframework.com/t/ionic-beta-12-strange-error/9801>\
**Category:** uncategorized\
**Created:** [September 17, 2014, 12:07pm UTC](https://forum.ionicframework.com/t/ionic-beta-12-strange-error/9801 "2014-09-17T12:07:01Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![ruben](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@ruben](https://forum.ionicframework.com/u/ruben)\
**Post date:** [September 22, 2014, 1:51pm UTC](https://forum.ionicframework.com/t/ionic-beta-12-strange-error/9801/9 "2014-09-22T13:51:57Z")

</div>

Still problems with scroll in nightly ☹

```
Uncaught TypeError: Cannot read property 'scrollTo' of null (caused by "undefined") (caused by "undefined") (caused by "undefined") ionic.bundle.js:39909(anonymous function) ionic.bundle.js:39909deferred.promise.then.wrappedCallback ionic.bundle.js:19197(anonymous function) ionic.bundle.js:19283$get.Scope.$eval ionic.bundle.js:20326$get.Scope.$digest ionic.bundle.js:20138$get.Scope.$apply ionic.bundle.js:20430(anonymous function) ionic.bundle.js:21938completeOutstandingRequest ionic.bundle.js:12022(anonymous function)

```

After changing states (not always, only in the one that takes you to the homepage and not always either) scrollView is undefined:

```
this.scrollTop = function(shouldAnimate) {
this.resize().then(function() {
  scrollView.scrollTo(0, 0, !!shouldAnimate);
});

```

};

We have an scrollTop on every state change start:

```
$rootScope.$on('$stateChangeStart', function(){
    $ionicScrollDelegate.$getByHandle('mainScroll').scrollTop();
});
```

---

_[View the full topic](https://forum.ionicframework.com/t/ionic-beta-12-strange-error/9801)._
