I wanted to check out the new console thing, and t...
# help
e
I wanted to check out the new console thing, and therefore updated my sst to the latest via npx sst update (0.56.2 + CDK: 1.132.0) but now my app doesn't start anymore nor build. Here's the error output:
Preparing your SST app
Synthesizing CDK
TypeError: Cannot read property 'map' of undefined
at HttpUserPoolAuthorizer2.bind (/Users/erik/src/dataworks/dwam-back/node_modules/@aws-cdk/aws-apigatewayv2-authorizers/lib/http/user-pool.ts:40:49)
at new HttpRoute (/Users/erik/src/dataworks/dwam-back/node_modules/@aws-cdk/aws-apigatewayv2/lib/http/route.ts:116:64)
at Api.addRoute (/Users/erik/src/dataworks/dwam-back/node_modules/@serverless-stack/resources/src/Api.ts:461:19)
at /Users/erik/src/dataworks/dwam-back/node_modules/@serverless-stack/resources/src/Api.ts:302:12
at Array.forEach (<anonymous>)
at Api.addRoutes (/Users/erik/src/dataworks/dwam-back/node_modules/@serverless-stack/resources/src/Api.ts:301:25)
at new Api (/Users/erik/src/dataworks/dwam-back/node_modules/@serverless-stack/resources/src/Api.ts:271:10)
at new MyStack (/Users/erik/src/dataworks/dwam-back/stacks/MyStack.js:60:17)
at Object.main (/Users/erik/src/dataworks/dwam-back/stacks/index.js:5:3)
at Object.<anonymous> (/Users/erik/src/dataworks/dwam-back/.build/run.js:94:16)
t
do you know what version you were on before?
e
I can't really tell you what was my prior SST version, but it's probably 2 months old at least
Any idea to try or info I should provide you with @thdxr or @Frank?
ok it seems I found the issue : CDK did a breaking change and you now have to use :
Copy code
userPoolClients: [userPoolClient],
instead of :
Copy code
userPoolClient: userPoolClient,
when using the HttpUserPoolAuthorizer constructor