Hey there
Anybody facing a problem after updating to Angular 11 with the updated @angular/material, encountering this error:
TypeError: Cannot read property '_applyBodyHighContrastModeCssClasses' of undefined
at new e (main-es2015.c8f294f80a15c1c3f55b.js:1)
at Object.o [as factory] (main-es2015.c8f294f80a15c1c3f55b.js:1)
at vs.hydrate (main-es2015.c8f294f80a15c1c3f55b.js:1)
at vs.get (main-es2015.c8f294f80a15c1c3f55b.js:1)
at main-es2015.c8f294f80a15c1c3f55b.js:1
at Set.forEach (<anonymous>)
at vs._resolveInjectorDefTypes (main-es2015.c8f294f80a15c1c3f55b.js:1)
at new zu (main-es2015.c8f294f80a15c1c3f55b.js:1)
at qu.create (main-es2015.c8f294f80a15c1c3f55b.js:1)
at main-es2015.c8f294f80a15c1c3f55b.js:1
I have tried removing package-json and reinstalling npm, but unfortunately, the error still persists.
Here are the package versions I am using:
@angular/material, @angular/cdk: 11.2.4
@angular/cli: 11.2.4