rc6 update
Hi guys, when we can get rc6 generated project currently it generate rc4 which is quite old.
Any process to manually update from angular-cli rc4 to rc6 ?
I think you have to wait for RC6 support to be released. But you can get one step forward and transform all your components into modules that is the new way of organizing your app features in RC6. So, when ng-cli rc6 support become available you are ready to use it!
My way to go (considering : https://angular.io/docs/ts/latest/cookbook/rc4-to-rc5.html) : -Update package.json by rc4 to rc6 and TypeScript 1.8 to 2.0.0 -Create app.module.ts and update main.ts following : https://github.com/StephenFluin/ngmodule-migration/commit/9f9c6ae099346e491fc31d77bf65ed440e1f164c -Run : npm install @angular/{core,common,compiler,platform-browser,platform-browser-d ynamic} --save -Run : npm install angular-cli @angular/tsc-wrapped --save-dev
Got this build error :
Error: Typescript found the following errors: /tmp/broccoli_type_script_compiler-input_base_path-0wzn2lif.tmp/0/src/app/app.component.spec.ts (3, 10): Module '"/node_modules/@angular/core/testing/index"'has no exported member 'addProviders'.
@Aorewen this is only the first error.. I've been there before... hehehe... When you fix this error removing addProviders from the test file you will end up in another error that is "cannot find traceur" and when you fiz it, you will end up in another one and so on. Trust me, wait for the Angular cli RC6 support to be released is better then trying to update it by yourself.
Thanks, at least i'm not feeling alone. :)
I'll be necessary build a new app using Angular-cli RC6 and move the src to the new app? or i can update using comand to this? my error is "traceur.js 404", when updated RC6 from RC5
Using webpack after upgrade the rc6 I was able to run ng serve. But when I use ng test I get this error Uncaught Error: Missing: SyncTestZoneSpec . Looking the error up someone suggested adding this to the karma shim require('zone.js/dist/proxy'); https://github.com/angular/zone.js/issues/404 But there is no such file in the webpack cli project.
just clone the git repo and do npm link as decribed in the readme and you will get rc6 (latest) up and running
@ihachani Did you ever fix your problem? I'm getting the same issue.
@zackporter92 have 2 ways to solve this, depends of the way you are using angular, if you are using Angular-Cli:
Look the comment of @choucry13 upside.
If you are using systemjs.config.js of angular quickstart you need clone the new repo.
@dekonunes I'm using the webpack version and so I don't have a systemjs config file
Hey guys, I found that doing what @moparlakci suggested with NPM Link fixed all my problems. If you are using the webpack version.
OK so today i used this from the git : Global package:
npm uninstall -g angular-cli npm cache clean npm install -g angular-cli@latest Local project package:
rm -rf node_modules dist tmp npm install --save-dev angular-cli@latest ng init
And it installed angular cli with the angular rc4, what's the problem ? you have allready in the repo in package.json angular rc6 so why ?
@slyerrr you are right! same here!
Forget about rc6...
rc7 was published today
Should we expect that the AngularCli Team follow every RC or is better to wait the final release to start using it? I'm still using RC5 because RC6 support was not released... My point is if it worth to work in every RC since it is changing so fast and the AngularCli Team cannot follow its speed.
I was relieved to see there were practically no breaking changes in RC7!
RC7 change log looks pretty compact. Nothing major, and practically no breaking changes. I would not worry too much about RC7. Angular CLI however! idk.
I'm also still using rc5 and waiting for next beta release.
In my opinion AngularCli team should try to follow each rc. If ye are using cli we will skip rc6 but after next release there we may report lots of issues introduced in both rc6 and rc7. More frequent releases could avoid it and help eliminate some bugs. Cli could be better tested then.
I found a way to start a new project using angular-cli with rc7:
-create a directory and go in -run npm install angular-cli@webpack -run ng new PROJECT_NAME -run cd PROJECT_NAME -open package.json : u're in rc5 -update package.json with these deps :
"dependencies": {
"@angular/common": "2.0.0-rc.7",
"@angular/compiler": "2.0.0-rc.7",
"@angular/core": "2.0.0-rc.7",
"@angular/forms": "2.0.0-rc.7",
"@angular/http": "2.0.0-rc.7",
"@angular/platform-browser": "2.0.0-rc.7",
"@angular/platform-browser-dynamic": "2.0.0-rc.7",
"@angular/router": "3.0.0-rc.3",
"core-js": "^2.4.0",
"rxjs": "5.0.0-beta.12",
"ts-helpers": "^1.1.1",
"zone.js": "0.6.21"
},
"devDependencies": {
"@types/jasmine": "^2.2.30",
"angular-cli": "1.0.0-beta.11-webpack.8",
"codelyzer": "~0.0.26",
"jasmine-core": "2.4.1",
"jasmine-spec-reporter": "2.5.0",
"karma": "0.13.22",
"karma-chrome-launcher": "0.2.3",
"karma-jasmine": "0.3.8",
"karma-remap-istanbul": "^0.2.1",
"protractor": "4.0.3",
"ts-node": "1.2.1",
"tslint": "3.13.0",
"typescript": "^2.0.0"
}
-update tsconfig.json : "module": "commonjs",
-run npm install
-run ng serve
app works!
thanks @serhiisol for is help