Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
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.
-
@sherscher Hi! Are you adding your own animation? If so, replace
ons.ModalElement
withons.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.