question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not build project created with cli

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
martinfletchercommented, Jan 25, 2017

@beeman alas, file permissions! yeah that’s working for me now too 😃

1reaction
beemancommented, Jan 25, 2017

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't build project made with Angular CLI and SCSS
Can 't run build, it throws an error, only with SCSS. Angular CLI version: Angular CLI: 13.0.2 Node: 14.18 ...
Read more >
Building generated project failed due to vue-cli-service ...
I created a new Vue project using the vue create command. I managed to build it properly on my MacOS platform, but on...
Read more >
C# solution not building C++/CLI projects.
1. Create a C# Windows Form project. · 2. Create some form in C#. · 3. Create and add a C++/CLI project. ·...
Read more >
create-project — AWS CLI 1.27.32 Command Reference
NO_SOURCE : The project does not have input source code. S3 : The source code is in an ... Use the CodeBuild console...
Read more >
dotnet publish command - .NET CLI - Microsoft Learn
The dotnet publish command's output is ready for deployment to a hosting system (for ... Doesn't build the project before publishing.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found