IONIC 2 build --release --prod error


#1

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.

Please help!


#2

That’s not the interesting part of the error. The interesting part is the part that tells you what is wrong in what part of your code.


#3

Please edit your post and use the </> button above the post input field to format your code or error message or wrap it in ``` (“code fences”) manually. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.