aws / aws-appsync-community

The AWS AppSync community
https://aws.amazon.com/appsync
Apache License 2.0
506 stars 32 forks source link

Import { util as util2 } from ... error in CDK deploy and console #283

Closed mikel67 closed 1 year ago

mikel67 commented 1 year ago

I am deploying a function via CDK and failing with errors in the code.

Copied the Typescript bundled code to manually check details in the console

bundled code snippet:

`// src/tenant-config/create/tenant-config-create.function.ts import { util as util2 } from "@aws-appsync/utils";

// src/shared/dynamodb-utils.ts import { util } from "@aws-appsync/utils";

// src/shared/utils.ts function getNameKey(name) { .....`

error message as per screenshot.

Screenshot 2023-04-11 at 16 40 31
mikel67 commented 1 year ago

This ended up being only a console display issue. Once the root cause error had been removed then CDK deploy works.

Also can confirm even thought errors are displayed in the console, can save.

Closing this issue