Skip to content

Can not build project created with cli #4224

@martinfletcher

Description

@martinfletcher

OS: Windows 10 Pro x64
CLI Versions: 1.0.0-beta.26
Node Version: 5.11.0

Created a new project via the following:

ng init --routing --style=scss --link-cli

Tried to build via the following:

ng build

The following is the stack trace:

ERROR in ./src/main.ts Module build failed: TypeError: Cannot read property 'newLine' of undefined at Object.getNewLineCharacter (D:\andromeda-prototype\node_modules\typescript\lib\typescript.js:8062:20) at Object.createCompilerHost (D:\andromeda-prototype\node_modules\typescript\lib\typescript.js:44978:26) at Object.ngcLoader (D:\andromeda-prototype\node_modules\@ngtools\webpack\src\loader.js:202:31) @ multi ./src/main.ts

No files were changed, updated cli to latest version as per docs but still same issue.

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