If you have experience error with your newly installed module on Angular 9 or Angular 10 saying that some part of it are not compatible with Ivy - this fix could help you.

The typical full message looks like this:

This likely means that the library (@***) which declares *** has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

 

You try to install newest version of the library, or if that is not possible (library is not updated) you can try reinstall node modules by these two commands:

                    npm cache clean --force

                  

and after that one:

                    npm install
                  

and that should fix it.