[Solve]Cordova plugins undefined with Ionic

“Cordova plugins undefined with IONIC framework” This post is to sort out a particular problem about when the ionic project starts running, there is an error message, said “Cordova plugins is undefined”. I searched over google, really cant find a good solution for it. People suggested to delete the plugin and reinstalled, which does not work for me. Look other people’s work, make me headache. I was trying to write information on the file which store in the cordova file system. »