The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

268004 (1) [Avatar] Offline
I attempted to setup the example with the latest version of angular-cli.I'm getting an error in typescript.js and the application fails to compile.

Would you be able to update the project to a new version of angular-cli. Is that is not possible, what would you recommend other than downloading the version that the project was created with.

Thank you.

Here is the error:

ERROR in ./src/main.ts
Module build failed: TypeError: Cannot read property 'newLine' of undefined
at Object.getNewLineCharacter (C:\Projects\Angular\portfolio-start\node_modu
at Object.createCompilerHost (C:\Projects\Angular\portfolio-start\node_modul
at Object.ngcLoader (C:\Projects\Angular\portfolio-start\node_modules\@ngtoo
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
webpack: Failed to compile.
jeremy.wilken (208) [Avatar] Offline
Hello, this is an error that I've seen as well if you use the latest CLI with an older project. For some reason the latest MEAP wasn't updated to specify that the projects are all designed to work with the beta.19-3 release, so you could install that version.

npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli@1.0.0-beta.19-3

Give that a try and see if it can clear up things.