angular-update-guide
angular-update-guide copied to clipboard
Angular 5 to 6 upgrade issue
If version 6 is explicitly specified during an angular cli upgrade, it skips the deletion of angular-cli.json as well as the creation of angular.json
This does not work for me:
rm -rf foo
npm install @angular/[email protected]
./node_modules/@angular/cli/bin/ng new foo
cd foo
cat package.json
npm install @angular/cli@6
./node_modules/@angular/cli/bin/ng update @angular/cli@6
./node_modules/@angular/cli/bin/ng update @angular/core@6
cat package.json
./node_modules/@angular/cli/bin/ng build
This does work for me:
rm -rf foo
npm install @angular/[email protected]
./node_modules/@angular/cli/bin/ng new foo
cd foo
cat package.json
npm install @angular/cli@6
./node_modules/@angular/cli/bin/ng update @angular/cli
./node_modules/@angular/cli/bin/ng update @angular/core
cat package.json
./node_modules/@angular/cli/bin/ng build
Check for yourself, and let me know if you're seeing the exact same thing. If you do confirm that this is the issue, I have a commit ready to update the recommendations.ts.