Michael Robellard
05/25/2022, 9:10 PMCannot find global type 'Array'.
Cannot find global type 'Boolean'.
Cannot find global type 'CallableFunction'.
Cannot find global type 'Function'.
Cannot find global type 'IArguments'.
Cannot find global type 'NewableFunction'.
Cannot find global type 'Number'.
Cannot find global type 'RegExp'.
Cannot find global type 'String'.
Library 'es2021' specified in compilerOptions
...
/Users/dramus/chartflow/stacks/dynamodb.js (21,13): Object literal may only specify known properties, and 'timeToLiveAttribute' does not exist in type 'TableProps'.
19. },
20. timeToLiveAttribute: "expires_at",
21. stream: true,
/Users/dramus/chartflow/stacks/dynamodb.js (72,21): Object literal may only specify known properties, and 'replicationRegions' does not exist in type '{ table?: any; }'.
70. cdk: {
71. replicationRegions: replicationRegions,
72. }
/Users/dramus/chartflow/stacks/dynamodb.js (80,15): Object literal may only specify known properties, and 'dynamodbtable' does not exist in type 'TableProps'.
78. this.globalchartflowdata = new sst.Table(this, "Table", {
79. dynamodbtable: dynamodb.Table.fromTableArn(this, "ImportedTable", tableArn),
80. });
/Users/dramus/chartflow/stacks/index.js (15,13): Property 'push' does not exist on type '{}'.
13. if(app.stage.startsWith("dev")){
14. regions.push("ap-southeast-1");
15. }
/Users/dramus/chartflow/stacks/s3.js (23,21): Object literal may only specify known properties, and 'publicReadAccess' does not exist in type '{ bucket?: BucketProps | Bucket; }'.
21. cdk: {
22. publicReadAccess: true
23. }
Deploying stacksRoss Coundon
05/25/2022, 9:21 PMcdk: {
table: {
}
}
So you’d need to do:
this.globalchartflowdata = new sst.Table(this, "Table", {
cdk: {
table: dynamodb.Table.fromTableArn(this, "ImportedTable", tableArn),
}
}
Ross Coundon
05/25/2022, 9:24 PMcdk: {
table: {
replicationRegions: replicationRegions,
}
}
Michael Robellard
05/25/2022, 9:27 PMMichael Robellard
05/25/2022, 9:28 PMMichael Robellard
05/25/2022, 9:31 PMRoss Coundon
05/25/2022, 9:31 PMMichael Robellard
05/25/2022, 9:33 PM