Monaca build error



  • Hi,

    I am trying to build a app for a school project, but i keep getting this error when I run the project:

    ReferenceError: monaca is not defined
    at Object.<anonymous> (file:///data/user/0/mobi.monaca.debugger/files/projects/cloud/584c4117803451040c0c55f6/www/js/dataservice.js:6:19)
    at Object.invoke (file:///data/user/0/mobi.monaca.debugger/files/projects/cloud/584c4117803451040c0c55f6/www/lib/ionic/js/ionic.bundle.js:17972:19)
    at Object.enforcedReturnValue [as $get] (file:///data/user/0/mobi.monaca.debugger/files/projects/cloud/584c4117803451040c0c55f6/www/lib/ionic/js/ionic.bundle.js:17811:37)
    at Object.invoke (file:///data/user/0/mobi.monaca.debugger/files/projects/cloud/584c4117803451040c0c55f6/www/lib/ionic/js/ionic.bundle.js:17972:19)
    at file:///data/user/0/mobi.monaca.debugger/files/projects/cloud/584c4117803451040c0c55f6/www/lib/ionic/js/ionic.bundle.js:17771:37
    at getService (file:///data/user/0/mobi.monaca.debugger/files/projects/cloud/584c4117803451040c0c55f6/www/lib/ionic/js/ionic.bundle.js:17918:39)
    at injectionArgs (file:///data/user/0/mobi.monaca.debugger/files/projects/cloud/584c4117803451040c0c55f6/www/lib/ionic/js/ionic.bundle.js:17942:58)
    at Object.instantiate (file:///data/user/0/mobi.monaca.debugger/files/projects/cloud/584c4117803451040c0c55f6/www/lib/ionic/js/ionic.bundle.js:17984:18)
    at $controller (file:///data/user/0/mobi.monaca.debugger/files/projects/cloud/584c4117803451040c0c55f6/www/lib/ionic/js/ionic.bundle.js:23389:28)
    at Object.self.appendViewElement (file:///data/user/0/mobi.monaca.debugger/files/projects/cloud/584c4117803451040c0c55f6/www/lib/ionic/js/ionic.bundle.js:59763:24)



  • i had similar problem and solved with reference to monaca-core-utils.js


Log in to reply