Skip to content

Commit 4402f1e

Browse files
committed
The application was last run in February 2017 for the demo to the client (Dublin, Ireland). Since then, Angular CLI was updated (Don't quite remember why; maybe for an Angular class), hence invalidating the wts-ui project. The changes in this check-in reflect the instructions in angular/angular-cli#4679.
1 parent da0d835 commit 4402f1e

File tree

3 files changed

+46
-2
lines changed

3 files changed

+46
-2
lines changed

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,47 @@ Run `ng github-pages:deploy` to deploy to GitHub Pages.
2929
## Further help
3030

3131
To get more help on the `angular-cli` use `ng help` or go check out the [Angular-CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
32+
33+
## Updates
34+
35+
### 7/3/2017
36+
37+
`ng serve` ran into the issue described in [Angular CLI App doesn't run after CLI update](https://github.com/angular/angular-cli/issues/4679)
38+
39+
On my CSRA Windows 7 Dell laptop, I followed the directions provided at the above ticket URL:
40+
41+
```
42+
rmdir /S node_modules
43+
npm install --save-dev @angular/cli@latest
44+
```
45+
46+
I removed the line '"angular-cli": "1.0.0-beta.26",' from package.json (As instructed), then ran:
47+
48+
```
49+
npm install
50+
ng serve
51+
```
52+
53+
The 'ng serve' indicated that I had to perform the following migration in angular-cli.json:
54+
55+
Replace:
56+
57+
```
58+
"environments": {
59+
"source": "environments/environment.ts",
60+
"dev": "environments/environment.ts",
61+
"prod": "environments/environment.prod.ts"
62+
}
63+
```
64+
65+
With:
66+
67+
```
68+
"environmentSource": "environments/environment.ts",
69+
"environments": {
70+
"dev": "environments/environment.ts",
71+
"prod": "environments/environment.prod.ts"
72+
}
73+
```
74+
75+

angular-cli.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"styles.css"
2222
],
2323
"scripts": [],
24+
"environmentSource": "environments/environment.ts",
2425
"environments": {
25-
"source": "environments/environment.ts",
2626
"dev": "environments/environment.ts",
2727
"prod": "environments/environment.prod.ts"
2828
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"zone.js": "^0.7.2"
2929
},
3030
"devDependencies": {
31+
"@angular/cli": "^1.2.0",
3132
"@angular/compiler-cli": "^2.3.1",
3233
"@types/jasmine": "2.5.38",
3334
"@types/node": "^6.0.42",
34-
"angular-cli": "1.0.0-beta.26",
3535
"codelyzer": "~2.0.0-beta.1",
3636
"jasmine-core": "2.5.2",
3737
"jasmine-spec-reporter": "2.5.0",

0 commit comments

Comments
 (0)