Aram
09/21/2021, 8:08 PMcdk.Queue
to set the deadLetterQueue
on it to mySSTQueue.sqsQueue
but since I updating sst from 0.37.2 to 0.43.3 a lot of new typescript errors started to appear during the buildthdxr
09/21/2021, 8:16 PMthdxr
09/21/2021, 8:16 PMAram
09/21/2021, 8:28 PMlib/index.ts:20:31 - error TS2345: Argument of type '(stack: Stack) => { runtime: Runtime; environment: { SUBDOMAIN: string; ROOT_DOMAIN: string; }; vpc: IVpc; vpcSubnets: { subnets: ISubnet[]; }; }' is not assignable to parameter of type 'FunctionProps | ((stack: Stack) => FunctionProps)'.
Type '(stack: Stack) => { runtime: Runtime; environment: { SUBDOMAIN: string; ROOT_DOMAIN: string; }; vpc: IVpc; vpcSubnets: { subnets: ISubnet[]; }; }' is not assignable to type '(stack: Stack) => FunctionProps'.
Call signature return types '{ runtime: Runtime; environment: { SUBDOMAIN: string; ROOT_DOMAIN: string; }; vpc: IVpc; vpcSubnets: { subnets: ISubnet[]; }; }' and 'FunctionProps' are incompatible.
The types of 'vpc.publicSubnets' are incompatible between these types.
Type 'import("/code/messaging/node_modules/@aws-cdk/aws-ec2/lib/vpc").ISubnet[]' is not assignable to type 'import("/code/messaging/node_modules/@aws-cdk/aws-lambda/node_modules/@aws-cdk/aws-ec2/lib/vpc").ISubnet[]'.
Type 'import("/code/messaging/node_modules/@aws-cdk/aws-ec2/lib/vpc").ISubnet' is not assignable to type 'import("/code/messaging/node_modules/@aws-cdk/aws-lambda/node_modules/@aws-cdk/aws-ec2/lib/vpc").ISubnet'.
Types of property 'associateNetworkAcl' are incompatible.
Type '(id: string, acl: import("/code/messaging/node_modules/@aws-cdk/aws-ec2/lib/network-acl").INetworkAcl) => void' is not assignable to type '(id: string, acl: import("/code/messaging/node_modules/@aws-cdk/aws-lambda/node_modules/@aws-cdk/aws-ec2/lib/network-acl").INetworkAcl) => void'.
Types of parameters 'acl' and 'acl' are incompatible.
Type 'import("/code/messaging/node_modules/@aws-cdk/aws-lambda/node_modules/@aws-cdk/aws-ec2/lib/network-acl").INetworkAcl' is not assignable to type 'import("/code/messaging/node_modules/@aws-cdk/aws-ec2/lib/network-acl").INetworkAcl'.
The types of 'addEntry(...).stack.tags' are incompatible between these types.
Type 'import("/code/messaging/node_modules/@aws-cdk/core/lib/tag-manager").TagManager' is not assignable to type 'import("/code/messaging/node_modules/@aws-cdk/aws-iam/node_modules/@aws-cdk/core/lib/tag-manager").TagManager'.
Types have separate declarations of a private property 'tags'.
20 app.setDefaultFunctionProps((stack) => {
~~~~~~~~~~~~
Found 1 error.
Aram
09/21/2021, 8:31 PMAram
09/21/2021, 8:31 PM