@angular-cli ng serve livereload doesn't work -


i new on angular2 , @angular-cli. download @angular-cli , try use livereload doesn't work. tried downgrade @ version 1.4.2 still not working.

i have failure:

error in ./src/main.ts module build failed: typeerror: cannot read property 'newline' of undefined     @ object.getnewlinecharacter (/home/cesar/repositorios/proyectoalbum/client-albums/node_modules/typescript/lib/typescript.js:9514:20)     @ object.createcompilerhost (/home/cesar/repositorios/proyectoalbum/client-albums/node_modules/typescript/lib/typescript.js:63770:26)     @ object.ngcloader (/home/cesar/repositorios/proyectoalbum/client-albums/node_modules/@ngtools/webpack/src/loader.js:380:33)  @ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts  error in ./src/polyfills.ts module build failed: typeerror: cannot read property 'newline' of undefined     @ object.getnewlinecharacter (/home/cesar/repositorios/proyectoalbum/client-albums/node_modules/typescript/lib/typescript.js:9514:20)     @ object.createcompilerhost (/home/cesar/repositorios/proyectoalbum/client-albums/node_modules/typescript/lib/typescript.js:63770:26)     @ object.ngcloader (/home/cesar/repositorios/proyectoalbum/client-albums/node_modules/@ngtools/webpack/src/loader.js:380:33)  @ multi ./src/polyfills.ts 

this version of @angular-cli , node

   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | | /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|                |___/ @angular/cli: 1.0.0 node: 6.10.2 os: linux x64 @angular/common: 4.0.1 @angular/compiler: 4.0.1 @angular/core: 4.0.1 @angular/forms: 4.0.1 @angular/http: 4.0.1 @angular/platform-browser: 4.0.1 @angular/platform-browser-dynamic: 4.0.1 @angular/router: 4.0.1 @angular/cli: 1.0.0 @angular/compiler-cli: 4.0.1 

regards!!

you did not upgrade correctly. ngtools binding not set correctly.

follow these steps : https://github.com/angular/angular-cli#updating-angular-cli


also :

require node 6.9.0 or higher, npm 3 or higher.

you can download latest version here : https://nodejs.org/en/. working correctly me.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -