I start my project with
IONIC start myProject -v2
I created new page via CLI with
ionic g page newpage
the new page created comes with 4 files (containing newpage.module.ts)
After design the apps. I build with
ionic build android --release --prod
but the system fail to generate production.
Error message is:
ake sure you have the latest version of node.js and npm installed.
If you do, this is most likely a problem with the langdubingxin package,
not with npm itself.
Tell the author that this fails on your system:
ionic-app-scripts build “–prod”
I go back to remove all the module.ts files. It is working fine in ionic serve!
but still fail to build production. Same error message.