angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Cannot read property 'NullLogger' of undefined

Open vaibhavmish opened this issue 8 years ago • 19 comments

<!--
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)

vaibhavmish avatar Feb 03 '18 06:02 vaibhavmish

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

npm install --save @angular/cli@latest

GaryS68 avatar Feb 03 '18 11:02 GaryS68

Also, if you prefer to stay on 1.4, upgrade to the latest patch release in the series (currently 1.4.10). If the issue persists, please re-open the issue.

clydin avatar Feb 03 '18 13:02 clydin

garyS68 yes it worked for me now it looks like this version is causing a problem

vaibhavmish avatar Feb 07 '18 00:02 vaibhavmish

yes it worked for me.

jovanymezura avatar Feb 11 '18 16:02 jovanymezura

Worked for me!

petekal1323 avatar Feb 14 '18 14:02 petekal1323

after doing that I get the following error: Error: Cannot read property 'dasherize' of undefined when trying to build new component

dwilson14 avatar Feb 17 '18 13:02 dwilson14

I have the same issue @dwilson14 ...

manubermu avatar Feb 19 '18 12:02 manubermu

clydin Some additional info - I was using a template provided by a colleague. He was not using the latest version of anything, while I was on angular cli 1.7.0. I was able to solve the issue by rolling everything back to his original settings, cli 1.4.2 and angular 4.2.4. I also am using telerik kendo controls in the app if that makes a difference. I was able to use angular cli in my other apps; just not this one.

dwilson14 avatar Feb 20 '18 21:02 dwilson14

Worked for me!

everii-gebo avatar Feb 26 '18 13:02 everii-gebo

Worked perfect for me.

gamma2018 avatar Mar 01 '18 12:03 gamma2018

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/[email protected]

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

luixaviles avatar Mar 05 '18 21:03 luixaviles

Save my journey. Work perfectly for me

mombe090 avatar Apr 11 '18 12:04 mombe090

Update with version 6: ng update @angular/cli

HZooly avatar May 05 '18 09:05 HZooly

npm update @angular/cli worked for me.

uurtsaikhb avatar May 30 '18 18:05 uurtsaikhb

npm uninstall -g @angular/cli npm install -g @angular/[email protected]

these two commands helped me... thanks!! :)

09abhishek avatar May 31 '18 06:05 09abhishek

thank you @luixaviles worked fine

sridhark158 avatar Jun 18 '18 06:06 sridhark158

I changed my package.json to "@angular/cli": "^1.4.10"

jhonatan2760 avatar Jun 28 '18 17:06 jhonatan2760

Thank, me helped @angular/cli: 1.4.7 updated to @angular/cli: 1.4.10 angular forever, the best!

LevapVeeskela avatar Oct 25 '18 08:10 LevapVeeskela

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.