Can not build project created with cli
See original GitHub issueOS: 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.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (5 by maintainers)
@beeman alas, file permissions! yeah that’s working for me now too 😃
@martinfletcher I see you’re using the
--link-cli
option, is this because you are running angular-cli from the master branch? If not, you don’t need that option.