Ionic-app-scripts: Not able to build in android

Created on 28 Oct 2016  路  6Comments  路  Source: ionic-team/ionic-app-scripts

_From @jayeshanandani on October 21, 2016 7:5_

Note: for support questions, please use one of these channels:

https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/

Note: for build related issues you can open up an issue on the ionic-app-scripts repo

https://github.com/driftyco/ionic-app-scripts

Short description of the problem:

When I try to build in android I encounter the below-mentioned error in the image. Same works in ionic ios build.

What behavior are you expecting?

Build should pass.

Steps to reproduce:

  1. Clone ionic-conference-app
  2. Run ionic build android
  3. See error in console.
insert any relevant code between the above and below backticks

Post the output of ionic info below please
capture

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

_Copied from original issue: driftyco/ionic-cli#1571_

Most helpful comment

@jayeshanandani,

Please remove the ^ character for your package.json file. Angular ahead-of-time compiler broke something on us so we had to stop relying on their wildcard for now.

Go to 2.0.0 and everything should work.

Thanks,
Dan

All 6 comments

_From @sfraga94 on October 21, 2016 10:50_

Same problem

_From @vintage on October 21, 2016 11:37_

You can try temporary solution which I've put in https://github.com/driftyco/ionic-cli/issues/1574

Could you provide me with the output from ionic info from within your project directory? Thanks, this should help in troubleshooting.

@jthoms1 : Below is the attached screenshot for ionic info

image

@jayeshanandani,

Please remove the ^ character for your package.json file. Angular ahead-of-time compiler broke something on us so we had to stop relying on their wildcard for now.

Go to 2.0.0 and everything should work.

Thanks,
Dan

@danbucholtz : Yes that works fine if we remove that ^ character.

Was this page helpful?
0 / 5 - 0 ratings