Skip to content

'_applyBodyHighContrastModeCssClasses' is undefined #22250

@ojanh

Description

@ojanh

i've got some issues when updated angular material in 11.2.4, with removing package-lock.json
when i do ng serve or ng build, i get this error when load the web:

TypeError: Cannot read property '_applyBodyHighContrastModeCssClasses' of undefined
at new MatCommonModule (core.js:101)
at Object.factory (core.js:11310)
at R3Injector.hydrate (core.js:11363)
at R3Injector.get (core.js:11183)
at core.js:11220
at Set.forEach ()
at R3Injector._resolveInjectorDefTypes (core.js:11220)
at new NgModuleRef$1 (core.js:25231)
at NgModuleFactory$1.create (core.js:25285)
at core.js:29112

i tried to trace that problem, i get the source of problem is on MatCommonModule because of some dependency inejction problem.
anyone can handle that??

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: clarificationThe issue does not contain enough information for the team to determine if it is a real bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions