Ionic Deploy Breaks Application!

After calling Deploy.sync(); the app occasionally reloads to a broken build.

We are using Ionic with a vanilla web application, and it appears as if some files are missing after rebuild (like the js files, or cs files etc). Has anyone else experienced this? And if so , any suggestions to solve such a problem.

Thanks!