New runtime error against latest bits



  • I just upgraded to the latest Onsen bits and now I’m getting this at startup of my app:

    Uncaught TypeError: Cannot read property 'ModalAnimator' of undefined
    

    This is in lift.js

    export default class LiftModalAnimator extends ons.ModalElement.ModalAnimator
    

    It’s saying ons.ModalElement is undefined.

    I’m super confused as I’m been developing on Onsen for well over a year now and have never seen this before.

    Any help would be greatly appreciated.


  • Onsen UI

    @sherscher Hi! Are you adding your own animation? If so, replace ons.ModalElement with ons.elements.Modal. Have a look at the changelog for more information.



  • @Fran-Diox Thanks Fran. Yea, I had some old code in there that I had forgotten about. Thanks for the quick response.


Log in to reply