-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: There is already a Construct with name 'TypeScriptSource' in BucketDeployment #993
Labels
bug
Something isn't working
Comments
Ah good catch! |
Hey @george-hm Sorry this took so long. It's fixed in v5.0.8. |
mrgrain
added a commit
that referenced
this issue
Dec 24, 2023
@mrgrain no worries we were wrapping up for the holidays anyhow! Thanks for the fix, we have upgraded to v5 |
Updating to v5 is great. It's also fixed for v3 and v4 now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When adding multiple sources (e.g. 2
TypescriptSource
's) to aBucketDeployment
construct, there is an error:To Reproduce
Create two
TypescriptSource
's (or twoJavaScriptSource
, the error happens for either) and add them to a bucket deploymentExample:
Expected behavior
No error and able to deploy successfully
Versions:
Additional context
I believe this issue stems from the consistent ID set for creating a new
s3Asset
which is done here:/~https://github.com/mrgrain/cdk-esbuild/blob/v5/src/source.ts#L69
It would be good if this ID is generated based on something so it is more unique
Looking at the full stacktrace hints at this problem:
The text was updated successfully, but these errors were encountered: