Hacker News new | ask | show | jobs
by shusson 3123 days ago
See https://github.com/angular/angular-cli/pull/8766
1 comments

I manually updated the typescript dependency which breaks the build, even when manually upgrading the compiler-cli to ^5.1.0, so basically 5.1 doesn't work with typescript 2.5.3 as indicated in the announcement.

I also don't get the point of upgrading to the latest angular-cli v1.6 and using it to create the same 5.0.0 app that v1.5 did.

Is the way to create a v5.1 ng app is for everyone to manually update all dependencies to ^5.1.0?

the caret ('^') will update a minor version[1]. So ^5.0.0 will install 5.1.0.

[1] https://bytearcher.com/articles/semver-explained-why-theres-...

The question is what's the best way to create an ng 5.1 app? i.e. what was just announced. I've just manually updated all deps to ^5.1.0.
If you grab the latest angular-cli and do `ng new foo`, you will get the latest 5.1.0 update. Or if you have an existing app, run `npm install` but make sure you update your package-lock.json file.