amazon-connect / amazon-connect-message-streaming-examples

This repository contains an example project on how to get started with Amazon Connect Chat Message Streaming APIs to enable SMS and Facebook messenger channels for customer service.
MIT No Attribution
23 stars 39 forks source link

lib/chat-message-streaming-examples-stack.ts:259:27 - error TS1109: Expression expected. #10

Closed jww closed 2 years ago

jww commented 2 years ago

There seems to be an inadvertent change to the lib/chat-message-streaming-examples-stack.ts file.

https://github.com/amazon-connect/amazon-connect-message-streaming-examples/blob/bff213c3ede5e5c27dda31091cf0262ccc88441c/lib/chat-message-streaming-examples-stack.ts#L259

node_modules/ts-node/src/index.ts:513 return new TSError(diagnosticText, diagnosticCodes) ^ TSError: ⨯ Unable to compile TypeScript: lib/chat-message-streaming-examples-stack.ts:259:27 - error TS1109: Expression expected.

259 arn:aws:s3:::${}/*,

ahmedyounis commented 2 years ago

Getting the same error.

I tried to fix the issue by reverting this line to the previous commit.

changed this: arn:aws:s3:::${}/*,

to this arn:aws:mobiletargeting:${this.region}:${this.account}:apps/${this.node.tryGetContext("pinpointAppId")}/messages,

cdk deploys fine, however, messages from the Agent to the mobile cell phone are not sending. The agent is able to see messages from the customer, but the agent cannot send messages back to the customer.

Can we get an update on when this can be resolved?

kqia040 commented 2 years ago

Thanks for calling this out, addressed this (rolled back to previous version).