_From @sunilkconsultant on April 19, 2017 12:50_
Ionic version:
[x] 3.x
I'm submitting a ...
[x] bug report
Current behavior:
node v6.10.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world@ ionic:build: ionic-app-scripts build "--prod"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ionic-hello-world@ ionic:build script 'ionic-app-scripts build "--prod"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ionic-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts build "--prod"
Expected behavior:
Build must not fail
Steps to reproduce:
Download a ionic v2 blank template,
Run platform add android,
Run ionic run android --prod
Ionic info: :
Your system information:
Cordova CLI: 6.5.0
Ionic Framework Version: 3.0.1
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.0
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: macOS Sierra
Node Version: v6.10.1
Xcode version: Xcode 8.2.1 Build version 8C1002
_Copied from original issue: driftyco/ionic#11271_
thanks for resolving this cheers!
👍
I am sorry - what was the solution here - I am still getting this error and unsure on how to solve it.
I'm with the same problem, I did not understand the solution @ jgw96
Move your code in other folder then it will work
I uninstalled ionic completely, setup the code again and it worked.
On Wed, Apr 26, 2017 at 12:33 PM, Anujmoglix notifications@github.com
wrote:
Move your code in other folder then it will work
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/driftyco/ionic-cli/issues/2119#issuecomment-297259077,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIJiVBjLUImwqS3VPgaU6cElgXDgXTdRks5rzuw8gaJpZM4NBvcH
.
The problem is with the "page-name.component.ts" file that is created when you use the "ionic generate page" command.
Create your pages manually and run it (ionic run android --prod) or (ionic run android --prod) again.
it worked for me.
Home they fix it soon.
Most helpful comment
I am sorry - what was the solution here - I am still getting this error and unsure on how to solve it.