Mike McCall
04/12/2021, 3:46 PMFrank
Mike McCall
04/12/2021, 5:44 PMFrank
Mike McCall
04/12/2021, 5:49 PMMike McCall
04/12/2021, 5:49 PMFrank
Mike McCall
04/12/2021, 5:51 PMFrank
aws-cognito
dependency in your package.json, and you are using it to import the userpool. And sst.AppSyncApi
also has a aws-cognito
module in its package.json. And depending on how npm installs them, there could be 2 different instances of aws-cognito
in your node_modules.Frank
Mike McCall
04/12/2021, 5:54 PMMike McCall
04/12/2021, 5:54 PMFrank
node_modules/
@aws-cdk/
aws-cognito v1.94.1
@serverless-stack
@aws-cdk/
aws-cognito v1.94.1
Frank
aws-cognito
import, and then the other aws-cognito
try to check its type, it results in an type errorMike McCall
04/12/2021, 5:58 PMFrank
Frank
aws-cdk
as a peerDependency. So there should never be multiple instances of the same CDK classes in your node_modules.Mike McCall
04/12/2021, 6:00 PMFrank