TS2322: Type ‘IUserPool’ is not assignable to type...
# help
a
TS2322: Type ‘IUserPool’ is not assignable to type ‘UserPool | UserPoolProps | undefined’.   Type ‘IUserPool’ is missing the following properties from type ‘UserPool’: userPoolProviderName, userPoolProviderUrl, triggers, addTrigger, and 22 more.
r
Are you using a compatible version of CDK?
a
hmmm…. lemme check
Copy code
"dependencies": {
    "@aws-cdk/aws-apigatewayv2-authorizers": "1.98.0",
    "@aws-cdk/aws-cognito": "1.98.0",
    "@aws-cdk/aws-s3": "1.98.0",
    "@aws-cdk/core": "1.98.0",
    "@serverless-stack/cli": "0.18.0",
    "@serverless-stack/resources": "0.18.0",
    "aws-lambda": "^1.0.6",
    "aws-sdk": "^2.895.0",
    "dynamoose": "^2.7.3",
    "fanpoint-types": "1.0.7",
    "moment": "^2.29.1",
    "node-fetch": "^2.6.1",
    "uuid": "^3.3.2"
  }
should be compatibale
I think so
r
Not sure then. Totally separate but I notice you gave moment as dependency which is deprecated. We've transitioned to luxon by the same creators but with immutable objects and treeshakeable packages
a
sorry, I didn’t get it, which dependency is deprecated?
r
Moment
a
Copy code
"moment": "^2.29.1" ?
this one>
r
a
but moment I’m using not in your library, it is just separated for my use, but yea, I can change
not sure it is related
r
Definitely not related. Just wanted to point it out
a
aaa thanks