index.tsx:15 Callback parsing error: TypeError: Cannot read properties of undefined (reading '_logger')
at signinRedirectCallback (@zitadel_react.js?v=2ca991b3:3410:26)
at index.tsx:13:15
at index.tsx:20:5
at commitHookEffectListMount (react-dom_client.js?v=2ca991b3:16904:34)
at commitPassiveMountOnFiber (react-dom_client.js?v=2ca991b3:18152:19)
at commitPassiveMountEffects_complete (react-dom_client.js?v=2ca991b3:18125:17)
at commitPassiveMountEffects_begin (react-dom_client.js?v=2ca991b3:18115:15)
at commitPassiveMountEffects (react-dom_client.js?v=2ca991b3:18105:11)
at flushPassiveEffectsImpl (react-dom_client.js?v=2ca991b3:19486:11)
at flushPassiveEffects (react-dom_client.js?v=2ca991b3:19443:22)
Library source code chunk:
async signinRedirectCallback(url = window.location.href) {
// ----- On line below error -----
const logger2 = this._logger.create("signinRedirectCallback");
// -------------------------------
const user = await this._signinEnd(url);
if (user.profile && user.profile.sub) {
logger2.info("success, signed in subject", user.profile.sub);
} else {
logger2.info("no subject");
}
return user;
}
Maybe someone already found a way how to fix error? Or maybe I did something wrong. I can provide React app for reproduction later if needed.
Description
Hi. I have this error when I'm trying to call
zitadel.userManager.signinRedirectCallback
.Environment
NX monorepo with regular Vite React app + TypeScript.
Lib version:
How instance created:
Error:
Library source code chunk:
Maybe someone already found a way how to fix error? Or maybe I did something wrong. I can provide React app for reproduction later if needed.