10

I have upgraded from Angular 8 to 9 and have enabled Ivy following all the steps here. When I run npm install a handful of my packages throw the error:

Tried to overwrite <package_path>.__ivy_ngcc_bak with an ngcc back up file, which is disallowed.

What does this mean and why is it happening? I'm having a hard time finding any info on it. I've installed the latest version for all of these packages throwing this error and I still get the error when I run npm install. Thanks!

andrewjames
  • 8,705
  • 5
  • 10
  • 31
Kyle Abens
  • 203
  • 2
  • 15

1 Answers1

3

This is an issue regarding the ivy compiler which is the default compiler from angular 9 onwards (read issue details). you can disable ivy compiler as below to avoid this error.

  • Go to tsconfig.json and find angularCompilerOptions.

  • Then add below

    "angularCompilerOptions": { "enableIvy": false }

techmagister
  • 593
  • 4
  • 12