Skip to content

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

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

fix(amplify): deploy asset Custom Resource points to TS file#18166
mergify[bot] merged 2 commits intoaws:masterfrom
samkio:master

Conversation

@samkio
Copy link
Copy Markdown
Contributor

@samkio samkio commented Dec 24, 2021

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
Copy link
Copy Markdown

gitpod-io bot commented Dec 24, 2021

@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
Copy link
Copy Markdown
Contributor

@skinny85 skinny85 left a comment

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
Copy link
Copy Markdown
Contributor

mergify bot commented Dec 31, 2021

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
Copy link
Copy Markdown
Contributor

mergify bot commented Dec 31, 2021

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*
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