After upgrading Ionic from RC1 to RC3 by following the documentation instructions, I encountered a problem where my app would not run properly on Android using ionic run android
or ionic build android
. Although previewing with ionic serve
and building a .apk file worked fine, running the app on my device or emulator resulted in displaying the splashscreen followed by a blank WebView. Upon debugging using chrome://inspect
, the console showed the error:
main.js:7 Uncaught Error: Cannot find module "./app.module.ngfactory"
I had backed up the project folder before the update when the app was functioning correctly. The code remained unchanged during the upgrade, and the files app.module.ts
, main.dev.ts
, and main.prod.ts
appeared to be intact.
I attempted to resolve the issue by deleting the .tmp and node-modules folders and running npm install
again, but unfortunately, the error persisted.