Developing a cross-platform app using Ionic Cordova plugin sometimes can be a pain. When you encounter a problem where an ionic app does not compile or when compiling it gets stuck on [Transpile Started] and it never compiles. The problem is mainly with the appscript.
In this case, the error it through after appscript installation was: Property popTo in type NavControllerBase is not assigned, so what I did was to go to node_modules/ionic-angular/nav and removed the argument from popTo() function. Problem solved.