Clayton
11/18/2021, 9:51 PMTypeError: Cannot read properties of undefined
errors with code that was working earlier. Not sure if this is related to a recent SST update or not; currently on version 0.53.0.
It looks like things are tripping up trying to use imported values. In the example below ‘EventHubBusArn’ is exported from another stack in the same AWS account –
const subsystemEventHubBusArn = Fn.importValue('EventHubBusArn').toString();
const eventHubBus = new sst.EventBus(this, 'EventHubBus', {
eventBridgeEventBus: events.EventBus.fromEventBusArn(this, 'EventHubBusImport', subsystemEventHubBusArn),
});
This was working earlier, but now hits this error –
TypeError: Cannot read properties of undefined (reading 'node')
at EventLakeStack.allocateLogicalId (/Users/clayton/Documents/GitHub/si-install--eventLake/node_modules/@aws-cdk/core/lib/stack.ts:502:31)
at EventLakeStack.getLogicalId (/Users/clayton/Documents/GitHub/si-install--eventLake/node_modules/@aws-cdk/core/lib/stack.ts:265:28)
at EventBus.getConstructInfo (/Users/clayton/Documents/GitHub/si-install--eventLake/node_modules/@serverless-stack/resources/src/EventBus.ts:154:41)
at App.registerConstruct (/Users/clayton/Documents/GitHub/si-install--eventLake/node_modules/@serverless-stack/resources/src/App.ts:400:29)
at new EventBus (/Users/clayton/Documents/GitHub/si-install--eventLake/node_modules/@serverless-stack/resources/src/EventBus.ts:89:10)
...
Any ideas on other ways to debug something like this? ThanksClayton
11/18/2021, 9:57 PMFrank
Frank
Clayton
11/18/2021, 11:13 PMFrank
Clayton
11/23/2021, 6:36 PMFrank
Clayton
11/23/2021, 11:06 PMFrank
Clayton
11/29/2021, 8:30 PMFrank
Clayton
11/30/2021, 2:25 PM