Skip to content

25.5 #3985

@elvisbegovic

Description

@elvisbegovic

Please provide us with the following information:

OS?

windows10

Versions.

25.5

Repro steps.

Nothing change on my code juste update from v24 to 25.5 and run ng serve or ng build I receive this same error ! How achieve?

The log given by the failure.

ERROR in ./src/main.ts
Module build failed: TypeError: Cannot read property 'newLine' of undefined
    at Object.getNewLineCharacter (C:\Users\e\WebstormProjects\i10\node_modules\typescript\lib\typescript.js:8062:20)
    at Object.createCompilerHost (C:\Users\e\WebstormProjects\i10\node_modules\typescript\lib\typescript.js:44978:26)
    at Object.ngcLoader (C:\Users\e\WebstormProjects\i10\node_modules\@ngtools\webpack\src\loader.js:171:31)
 @ multi main

Mention any other details that might be useful.

Always I update CLI always I have error. I never update cli without error !

SOLVED

I remove my /node_modules folder and run again npm install
PS: it seems when run ng init on existant project (yes I override package.json) so I think "npm install" isn't really executed or what happens? Maybe npm bug

you can close issue but this is second time (after cli udpate) I get this newLine .... error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions