All thoughts and posts are my own, said by @rakibtg.
posted at Saturday, 12 August 2017

This article is about a quick fix, when you probably having some kind of errors while you want to build the Ionic 2/3 app.

I was having issues while try to upload the app via "ionic upload" command to test the app on a real device, as well as while building the app to test in the simulator.

Quick and dirty fix to this issue is to upgrade the version of Ionic CLI.

Go to your project root directory where the package.json file will be found.
Now run this commands:

  npm i -g ionic@latest
  npm i --save-dev --save-exact ionic@latest

This will upgrade the ionic CLI to the latest version and all those errors related to build the app should be gone. Give it a try and let me know if there is any better ways you figuredout. @rakibtg