4

When we upgrade the angular version 8 to 9 then it is show the following error during ng serve.

enter image description here

1
  • Did you follow guide to upgrade angular from 8.0 to 9 official docs. This one Commented Feb 24, 2020 at 12:48

1 Answer 1

3

Renderer had been deprecated for some time now, and finally removed in Angular 9. You should migrate to Renderer2.

https://angular.io/guide/migration-renderer

Sign up to request clarification or add additional context in comments.

2 Comments

can we downgrade the version? I try to multiple time but angular version not change .
@AyushSahu you can downgrade by running npm i @angular/core@8 @angular/cli@8, assuming you were on version 8. Sometimes your package.json and package-lock.json will get out of sync and your project will use what's inside of the package-lock.json file. So now, run npm i to sync them up. If you still run into problems after that, run npm ci to do a completely clean install of your dependencies.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.