Closed DanielKeravt closed 1 year ago
Hey @DanielKeravt, Not sure why the error is happening. Can you create an example with the error, so we can check what is the issue?
Closing this issue since seems it is not a general problem. If you or someone faces an issue with this feature please open a new ticket with an example so we can better evaluate. Thanks!
When I import 'BrowserAnimationsModule' into app.module, this error appears in the browser console:
ERROR Error: Uncaught (in promise): Error: An error happened during access validation. Details:TypeError: Cannot read properties of undefined (reading 'resourceAccess') Error: An error happened during access validation. Details:TypeError: Cannot read properties of undefined (reading 'resourceAccess') at keycloak-angular.mjs:33:19 at Generator.next () at asyncGeneratorStep (asyncToGenerator.js:3:1) at _next (asyncToGenerator.js:22:1) at _ZoneDelegate.invoke (zone.js:375:26) at Object.onInvoke (core.mjs:24260:33) at _ZoneDelegate.invoke (zone.js:374:52) at Zone.run (zone.js:134:43) at zone.js:1278:36 at _ZoneDelegate.invokeTask (zone.js:409:31) at resolvePromise (zone.js:1214:31) at resolvePromise (zone.js:1168:17) at zone.js:1281:17 at _ZoneDelegate.invokeTask (zone.js:409:31) at core.mjs:23946:55 at AsyncStackTaggingZoneSpec.onInvokeTask (core.mjs:23946:36) at _ZoneDelegate.invokeTask (zone.js:408:60) at Object.onInvokeTask (core.mjs:24247:33) at _ZoneDelegate.invokeTask (zone.js:408:60) at Zone.runTask (zone.js:178:47)
I am using Angular CLI: 15.2.4, @angular/material": "^15.2.5", Keycloak 18.0.2.
Why does this error appear? Please help