Krizza
01/24/2022, 7:34 AMArgument of type '{ bucket: sst.Bucket; }' is not assignable to parameter of type 'StackProps'.
Object literal may only specify known properties, and 'bucket' does not exist in type 'StackProps'.Krizza
01/24/2022, 7:35 AMKrizza
01/24/2022, 7:47 AMAshishkumar Pandey
01/24/2022, 8:18 AMKrizza
01/24/2022, 8:23 AMstacks/StorageStack.ts and the second image shows no issues pulling out the bucket variable from stacks/index.tsBrinsley
01/24/2022, 3:04 PMbucket in StackProps which is the 3rd argument your stack is likely expecting. if it’s set up similarly to the StorageStack you screenshot above.
This is what the StackProps looks like:
https://docs.serverless-stack.com/constructs/Stack#stackprops
It’s quite likely that you’ve not used the correct type in you constructors for your other two stacks.Krizza
01/25/2022, 1:59 AMbucket from props because it could be undefined. Will mark the correct answer with a check for anyone who might encounter the issue