0

After updating the Angular lib from angular 9 to angular 10, I am getting the following error while building the library.

ERROR: Symbol MatButton declared in ...........................  is not exported from @angular/material/button. 

I couldn't understand the reason, can somebody please suggest what needs to be done?

Thanks, Meenakshi

2 Answers2

4

I had same issue with another module. My problem was that I imported module through deep path instead of short one.

Error occurs:

import { SomeModule } from 'npm-package-name/some.module';

No error:

import { SomeModule } from 'npm-package-name';
Slava Mill
  • 41
  • 4
0

I had the same problem after enabling ivy while my imports were correct. For me updating @angular/material to 11.2.10 and updating @angular/compiler-cli to 11.2.11 fixed the issue.

Mathias
  • 1,819
  • 4
  • 22
  • 34