I can't build for android or iOS after migration to RC.1.
Can build for android and iOS.
Steps to reproduce:
ionic build android
Running 'build:before' npm script before build
> [email protected] build C:\Users\samuel.fraga\proyectos\apppresencia
> ionic-app-scripts build
[12:57:40] ionic-app-scripts 0.0.36
[12:57:40] build prod started ...
[12:57:40] clean started ...
[12:57:40] clean finished in 3 ms
[12:57:40] copy started ...
[12:57:40] ngc started ...
[12:57:40] copy finished in 207 ms
[12:57:40] lint started ...
[12:57:41] C:\Users\samuel.fraga\proyectos\apppresencia\node_modules\@angular\compiler-cli\src\private_import_compiler.js:10
[12:57:41] exports.AssetUrl = compiler_1.__compiler_private__.AssetUrl;
[12:57:41] TypeError: Cannot read property 'AssetUrl' of undefined
[12:57:41] ngc failed
[12:57:41] ionic-app-script task: "build"
[12:57:41] Error: Error
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build" "--color"
npm ERR! node v6.8.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'ionic-app-scripts build'.
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 apppresencia package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs apppresencia
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls apppresencia
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\samuel.fraga\proyectos\apppresencia\npm-debug.log
Caught exception:
undefined
Mind letting us know? https://github.com/driftyco/ionic-cli/issues
ionic info below pleaseYour system information:
You have been opted out of telemetry. To change this, run: cordova telemetry on.
6.3.1
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.36
OS:
Node Version: v6.8.0
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 npm install -g cordova
Same issue here. If you want to workaround the issue for now pin all versions of the @angular/* libs in the package.json to 2.0.0 like the following:
"@angular/common": "2.0.0",
"@angular/compiler": "2.0.0",
"@angular/compiler-cli": "0.6.2",
"@angular/core": "2.0.0",
"@angular/forms": "2.0.0",
"@angular/http": "2.0.0",
"@angular/platform-browser": "2.0.0",
"@angular/platform-browser-dynamic": "2.0.0",
"@angular/platform-server": "2.0.0",
It did the trick for me (possibly you will have to recreate node_modules/ dir).
Thanks a lot @vintage !!
Most helpful comment
Same issue here. If you want to workaround the issue for now pin all versions of the @angular/* libs in the package.json to 2.0.0 like the following:
It did the trick for me (possibly you will have to recreate node_modules/ dir).