Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After upgrade to 2.3 build not work and freeze in first step. #10941

Closed
jafaripur opened this issue Mar 28, 2017 · 7 comments
Closed

After upgrade to 2.3 build not work and freeze in first step. #10941

jafaripur opened this issue Mar 28, 2017 · 7 comments

Comments

@jafaripur
Copy link

jafaripur commented Mar 28, 2017

Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
After upgrading to latest ionic version the build not work and freeze in first step

Expected behavior:
Build application

Steps to reproduce:
Run ionic build command in console:

ionic build android --release

Other information:
No warning or error in building just freeze.
In installing the packages the also this error occurred in npm console:

UNMET PEER DEPENDENCY [email protected]
npm WARN @ionic/[email protected] requires a peer of typescript@~2.2.1 but none was installed.

I used the packages of app-base-2 repository.

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Cordova CLI: 6.5.0 
Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.2.2
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v6.10.0
Xcode version: Not installed
> Test@ ionic:build /home/test-mobile
> ionic-app-scripts build --prod "--release"
@clucani
Copy link

clucani commented Mar 28, 2017

Same issue here.

Cordova CLI: 6.5.0
Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.2.2
ios-deploy version: 1.8.4
ios-sim version: 4.1.1
OS: macOS Sierra
Node Version: v6.9.5
Xcode version: Xcode 8.1 Build version 8B62

I can replicate by

ionic start --v2 test sidemenu
cd test
rm -rf node_modules
npm install

@notyetspecified
Copy link

notyetspecified commented Mar 28, 2017

Same here trying to build any ionic project on my Debian 9 machine:

Cordova CLI: 6.5.0
Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.2.2
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.9
Node Version: v7.7.4
Xcode version: Not installed

It is WORKING in Windows 10 though:

Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v7.7.4
Xcode version: Not installed

@bharathirajatut
Copy link

bharathirajatut commented Mar 28, 2017

Please go to node_modules/@ionic/app-scripts/package.json and change the "typescript": "~2.2.1" to "typescript": "*"

Before
"name": "@ionic/app-scripts",
"optionalDependencies": {},
"peerDependencies": {
"@angular/core": "",
"@angular/compiler": "
",
"@angular/compiler-cli": "",
"@angular/tsc-wrapped": "
",
"rxjs": "",
"sw-toolbox": "
",
"typescript": "~2.2.1",
"zone.js": "*"
}

After

"name": "@ionic/app-scripts",
"optionalDependencies": {},
"peerDependencies": {
"@angular/core": "",
"@angular/compiler": "
",
"@angular/compiler-cli": "",
"@angular/tsc-wrapped": "
",
"rxjs": "",
"sw-toolbox": "
",
"typescript": " * ",
"zone.js": " * "
}

This error raises, because of Ionic Framework Version: 2.3.0 from 2.2

@notyetspecified
Copy link

notyetspecified commented Mar 28, 2017

It appears to be an app-scripts issue.
Reverted to @ionic/[email protected] on my Linux machine.

Edit:
I also had some problemas with npm and had to set an alias on my .bashrc:
alias npm='node --max_old_space_size=8000 /usr/bin/npm'
as mentioned here.

@esmiralha
Copy link

Same probem here.

@jgw96
Copy link
Contributor

jgw96 commented Mar 28, 2017

Hello all, thanks for opening an issue with us! I am going to close this issue as a duplicate of ionic-team/ionic-app-scripts#838

@jgw96 jgw96 closed this as completed Mar 28, 2017
@ionitron-bot
Copy link

ionitron-bot bot commented Sep 3, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants