I had upgraded ionic with npm install -g ionic to the latest version 3.10.3.
Soon my build stop working because some version issues like I need angular 4.1.3, etc.
After I fixed those issues and everything got “compiled”, I notice that my command:
ionic serve or ionic cordova run android --device reports that the build is complete but really it doesn’t run the project.
As you can see in the console log it doesn’t run the serve. I also notice that my www/build folder which should content all the project build is empty. Which means that the script is failing silence and the project doesn’t run.
But I can get the project to create the build by using ‘ionic build --aot’ but as soon I try to run the project using ‘ionic serve’ it clean the folder again back to where I started
please help
folder www/build
[vns@betito lean2]$ ls www/build/
polyfills.js sw-toolbox.js
Console log
[vns@betito lean2]$ ionic serve --verbose
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: '/home/vns/workspace/lean2', local: false, binPath:
'/usr/lib/node-v6.11.3-linux-x64/lib/node_modules/ionic/bin/ionic', libPath:
'/usr/lib/node-v6.11.3-linux-x64/lib/node_modules/ionic/dist/index.js' }
[INFO] Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 -
Ctrl+C to cancel
[17:08:18] watch started ...
[17:08:18] build dev started ...
[17:08:18] clean started ...
[17:08:18] clean finished in 2 ms
[17:08:18] copy started ...
[17:08:18] transpile started ...
[17:08:22] transpile finished in 4.02 s
[17:08:22] preprocess started ...
[17:08:22] deeplinks started ...
[17:08:22] deeplinks finished in 68 ms
[17:08:22] preprocess finished in 69 ms
[17:08:22] webpack started ...
[17:08:22] copy finished in 4.34 s
package:
{
"name": "lean",
"author": "PeopleWare",
"homepage": "http://www.peopleware.do/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "4.1.3",
"@angular/compiler": "4.1.3",
"@angular/compiler-cli": "4.1.3",
"@angular/core": "4.1.3",
"@angular/forms": "4.1.3",
"@angular/http": "4.1.3",
"@angular/platform-browser": "4.1.3",
"@angular/platform-browser-dynamic": "4.1.3",
"@angular/platform-server": "4.1.3",
"@ionic-native/core": "^3.6.1",
"@ionic-native/google-analytics": "^3.12.1",
"@ionic-native/network": "3.12.1",
"@ionic-native/splash-screen": "^4.2.1",
"@ionic-native/status-bar": "^4.2.1",
"@ionic-native/toast": "^3.13.1",
"@ionic/storage": "2.0.0",
"cordova-android": "^6.2.3",
"cordova-plugin-console": "1.0.5",
"cordova-plugin-device": "1.1.4",
"cordova-plugin-google-analytics": "~1.8.3",
"cordova-plugin-network-information": "~1.3.3",
"cordova-plugin-splashscreen": "~4.0.1",
"cordova-plugin-statusbar": "2.2.1",
"cordova-plugin-whitelist": "1.3.1",
"cordova-plugin-x-toast": "^2.6.0",
"ionic-angular": "3.6.1",
"ionic-native": "2.4.1",
"ionic-plugin-deploy": "~0.6.7",
"ionic-plugin-keyboard": "~2.2.1",
"ionicons": "3.0.0",
"lodash": "^4.17.4",
"moment": "^2.18.1",
"rxjs": "5.4.0",
"sw-toolbox": "3.4.0",
"zone.js": "^0.8.4"
},
"devDependencies": {
"@angular/tsc-wrapped": "^4.3.6",
"@ionic/app-scripts": "2.1.4",
"typescript": "2.1.5"
},
"cordovaPlugins": [
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"cordova-plugin-whitelist",
"cordova-plugin-console",
"cordova-plugin-device",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": [],
"description": "lean2: An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-x-toast": {},
"cordova-plugin-console": {},
"cordova-plugin-device": {},
"cordova-plugin-google-analytics": {},
"cordova-plugin-network-information": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-whitelist": {},
"ionic-plugin-deploy": {},
"ionic-plugin-keyboard": {}
},
"platforms": [
"android"
]
}
}
ionic info:
cli packages: (/usr/lib/node-v6.11.3-linux-x64/lib/node_modules)
@ionic/cli-utils : 1.10.2
ionic (Ionic CLI) : 3.10.3
global packages:
Cordova CLI : 6.5.0
local packages:
@ionic/app-scripts : 2.1.4
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.6.1
System:
Android SDK Tools : 25.2.5
Node : v6.11.3
npm : 5.3.0
OS : Linux 4.12