Adrian Schweizer
05/17/2022, 11:25 PMstacks/AuthStack.js (58,23): Object is possibly 'undefined'.
56. UserPoolId: auth.userPoolId,
57. IdentityPoolId: auth.cdk.cfnIdentityPool.ref,
58. UserPoolClientId: auth.cdk.userPoolClient.userPoolClientId,
I tried to migrate this with the migration guide, which told me to move cognitoCfnIdentityPool ⇒ cdk.cfnIdentityPoolAdrian Schweizer
05/17/2022, 11:27 PMNoah D
05/18/2022, 7:08 AMthis.addOutputs({
Region: scope.region,
UserPoolId: this.auth.cdk.userPool.userPoolId,
IdentityPoolId: this.auth.cdk.cfnIdentityPool?.ref || '',
UserPoolClientId: this.auth.cdk.userPoolClient.userPoolClientId,
});
Adrian Schweizer
05/18/2022, 11:54 AMAdrian Schweizer
05/18/2022, 11:55 AMFrank
Frank
Frank
auth.cdk.cfnIdentityPool.ref
could be undefined, so the type check complained.Frank