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.

Cannot read property 'NullLogger' of undefined

See original GitHub issue
<!--
Output from: `ng --version`.
@angular/cli: 1.4.5
node: 6.11.1
os: win32 x64
@angular/animations: 4.4.6
@angular/common: 4.4.6
@angular/compiler: 4.4.6
@angular/core: 4.4.6
@angular/forms: 4.4.6
@angular/http: 4.4.6
@angular/platform-browser: 4.4.6
@angular/platform-browser-dynamic: 4.4.6
@angular/router: 4.4.6
@angular/cli: 1.4.5
@angular/compiler-cli: 4.4.6
@angular/language-service: 4.4.6
typescript: 2.3.4

-->

Repro steps

  • Step 1
  • Step 2
  • Step 3

Observed behavior

<!-- Normally this includes a stack trace and some more information. -->

Desired behavior

Mention any other details that might be useful (optional)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

44reactions
GaryS68commented, Feb 3, 2018

Calling this solution in your project folder worked for me, from stackOverflow:

npm install --save @angular/cli@latest

11reactions
luixavilescommented, Mar 5, 2018

I had the same issue with CLI 1.4.9. If you don’t want/need to update angular-cli to a major version, just run the following commands:

npm uninstall -g @angular/cli
npm install -g @angular/cli@1.4.10

Now I’m able to use CLI 1.4 with latest node version 8.9.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can not read property 'NullLogger' of undefined (angular/cli ...
Today, sudeenly I start getting this error "Cannot read property 'NullLogger' of undefined" while trying to add a component ( ng g c...
Read more >
Angular 1.4.9 : Cannot read property 'NullLogger' of undefined
The local Angular CLI version is used. To disable this warning use "ng set --global warnings.versionMismatch=false". Cannot read property ' ...
Read more >
Cannot read property 'NullLogger' of undefined - Angular 5
Cannot read property ' NullLogger' of undefined - Angular 5.
Read more >
Can not read property 'NullLogger' of undefined (angular/cli ...
Today, sudeenly I start getting this error "Cannot read property 'NullLogger' of undefined" while trying to add a component ( ng g c...
Read more >
Cann't read property 'NullLogger' of undefined - karthikeyavarma
Angular component creation error : Cann't read property 'NullLogger' of undefined. Install latest Cli to solve this issue.
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