2

I am using angular-CLI for angular 2, for running I am doing ng serve in command prompt after ng serve getting module build failed 'Cannot read property newLine of undefined' error for all my angular 2 projects.

Module build failed: TypeError: Cannot read property 'newLine' of undefined
at Object.getNewLineCharacter (C:\Users\timebound\angularJson\node_modules\typescript\lib\typescript.js:8062:20)
at Object.createCompilerHost (C:\Users\timebound\angularJson\node_modules\typescript\lib\typescript.js:44978:26)
at Object.ngcLoader (C:\Users\timebound\angularJson\node_modules\@ngtools\webpack\src\loader.js:329:31)

@ multi webpack-dev-server/client?http://localhost:4300/ ./src/main.ts

I followed angular cli issues,still i am not able to fix, i am newer to angular 2, please help me

3
  • Please try to elaborate your question. We can't help you if aren't specific. Commented Feb 9, 2017 at 6:22
  • Had the same issue even after following angular cli upgrade instructions, removing node_modes folder in my app solved it.. Commented Feb 9, 2017 at 16:42
  • 1
    @frant.hartm Thanks, i had solevd it by running through npm start instead of doing ng serve. Commented Feb 10, 2017 at 8:26

1 Answer 1

6

change the devDependencies from "angular-cli": "1.0.0-beta.28.3" to "@angular/cli": "1.0.0-beta.30"

Sign up to request clarification or add additional context in comments.

1 Comment

Hi, I tried installed with @latest and still stuck on 28.3 how did you get .30 to download? stackoverflow.com/questions/42419964/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.