Uncaught ReferenceError: ionic undefined

An ionic application showing Uncaught ReferenceError: ionic is not defined in the log when it is open in a browser for testing and appears blank on a mobile device. Is there a solution to solve this problem?

+7
android angularjs ionic-framework
source share
3 answers

After adding the ion platform web client and push plugin. Adding Ionic.io (); before I declared that ionic.push () solved the problem for me.

+2
source share

Just go with this:

ionic io init ionic config set dev_push false //or true 
0
source share

I need to install "gulp" globally to fix it.

 npm install gulp -g 
0
source share

All Articles