Skip to content

fix(amplify): deploy asset Custom Resource points to TS file - #18166

Merged
mergify[bot] merged 2 commits into
aws:masterfrom
samkio:master
Dec 31, 2021
Merged

mergify[bot] merged 2 commits into
aws:masterfrom
samkio:master

Conversation

@samkio

@samkio samkio commented Dec 24, 2021

Copy link
Copy Markdown
Contributor

The .ts file is not packaged and exported when
distributed resulting in the CDK being unable to
find the index file. This has been corrected to
point to the .js version instead.


Error currently observed (CDK 1.137.0)

Cannot find entry file at /home/samkio/projects/activity-management-react-app/packages/server-cdk-stack/node_modules/@aws-cdk/aws-amplify/lib/asset-deployment-handler/index.ts
Subprocess exited with error 1

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

The .ts file is not packaged and exported when
distributed resulting in the CDK being unable to
find the index file. This has been corrected to
point to the .js version instead.
@gitpod-io

gitpod-io Bot commented Dec 24, 2021

Copy link
Copy Markdown

@github-actions github-actions Bot added the @aws-cdk/aws-amplify Related to AWS Amplify label Dec 24, 2021
@samkio
samkio marked this pull request as ready for review December 24, 2021 13:45
@EricBorland

Copy link
Copy Markdown

When is this going to be merged (and released)? doing a sed -i on postinstall to workaround this is pretty ugly...

Thanks :)

@skinny85 skinny85 changed the title fix(aws-amplify): deploy asset entry correction fix(amplify): deploy asset Custom Resource points to TS file Dec 30, 2021

@skinny85 skinny85 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix @samkio, and apologies for the late review!

@skinny85 skinny85 added the pr-linter/exempt-test The PR linter will not require test changes label Dec 31, 2021
@mergify

mergify Bot commented Dec 31, 2021

Copy link
Copy Markdown
Contributor

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation

Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 1e88f36
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
mergify Bot merged commit a1508af into aws:master Dec 31, 2021
@mergify

mergify Bot commented Dec 31, 2021

Copy link
Copy Markdown
Contributor

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
The .ts file is not packaged and exported when
distributed resulting in the CDK being unable to
find the index file. This has been corrected to
point to the .js version instead.


----

Error currently observed (CDK 1.137.0)

```
Cannot find entry file at /home/samkio/projects/activity-management-react-app/packages/server-cdk-stack/node_modules/@aws-cdk/aws-amplify/lib/asset-deployment-handler/index.ts
Subprocess exited with error 1
```

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
ali-n4i pushed a commit to ali-n4i/aws-cdk that referenced this pull request Jul 29, 2026
The .ts file is not packaged and exported when
distributed resulting in the CDK being unable to
find the index file. This has been corrected to
point to the .js version instead.


----

Error currently observed (CDK 1.137.0)

```
Cannot find entry file at /home/samkio/projects/activity-management-react-app/packages/server-cdk-stack/node_modules/@aws-cdk/aws-amplify/lib/asset-deployment-handler/index.ts
Subprocess exited with error 1
```

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@aws-cdk/aws-amplify Related to AWS Amplify pr-linter/exempt-test The PR linter will not require test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants