Everything was running fine yesterday, now when I try to ng serve I get these errors:
ERROR in ./src/main.ts Module build failed: TypeError: Cannot read property 'newLine' of undefined at Object.getNewLineCharacter (/Users/leongaban/Projects/TickerTags/wikitags/node_modules/typescript/lib/typescript.js:8062:20)
I tried the answers here and here but no effect :(
My global and local npm version for angular-cli is 1.0.0-beta.28.3
how do I upgrade that to .30? I tried @latest
My local package.json:
"devDependencies": {
"@angular/cli": "1.0.0-beta.28.3",
"@angular/compiler-cli": "^2.4.0",
My global package:
I see that the latest is beta.32 https://github.com/angular/angular-cli/releases
However when I run npm install -g angular-cli@latest
it still installs .28.3
OS : Windows with Angular 4
"@angular/cli": "1.2.1"
"@angular/material": "2.0.0-beta.6"
I just removed the caret from above two dependencies and performed following steps, everything started working perfectly.
In package.json I changed:
"devDependencies": {
"@angular/cli": "1.0.0"
To:
"devDependencies": {
"@angular/cli": "1.2.0"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With