-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
❗ NOTICE (core): Stack crossRegionReferences
and CfnJson
fail with Error: Cannot find module '../dist/core/<file>.generated'
#28465
Labels
@aws-cdk/core
Related to core CDK functionality
@aws-cdk/custom-resources
Related to AWS CDK Custom Resources
management/tracking
Issues that track a subject or multiple issues
p0
Comments
mrgrain
added
management/tracking
Issues that track a subject or multiple issues
p0
labels
Dec 22, 2023
Also facing similar issues on
|
@Geaper Thanks for reporting! |
mrgrain
changed the title
❗ NOTICE (core): CfnJson fails with
❗ NOTICE (core): Core constructs fail with Dec 22, 2023
Error: Cannot find module '../dist/core/cfn-utils-provider.generated'
Error: Cannot find module '../dist/core/<file>,generated'
mrgrain
changed the title
❗ NOTICE (core): Core constructs fail with
❗ NOTICE (core): Core constructs fail with Dec 22, 2023
Error: Cannot find module '../dist/core/<file>,generated'
Error: Cannot find module '../dist/core/<file>.generated'
mergify bot
pushed a commit
that referenced
this issue
Dec 22, 2023
…ist/core/<file>.generated'` (#28467) #28251 added new files to `aws-cdk-lib/core/lib/dist/core` but this path was excluded from the npm package, causing the above error. This fix includes the generated file into the package. Closes #28465 Manually tested with a locally build package that includes the fix. <img width="1449" alt="image" src="https://github.com/aws/aws-cdk/assets/379814/11714c41-edea-403e-9b64-454ba9768c08"> ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
mrgrain
added a commit
that referenced
this issue
Dec 22, 2023
…ist/core/<file>.generated'` (#28467) #28251 added new files to `aws-cdk-lib/core/lib/dist/core` but this path was excluded from the npm package, causing the above error. This fix includes the generated file into the package. Closes #28465 Manually tested with a locally build package that includes the fix. <img width="1449" alt="image" src="https://github.com/aws/aws-cdk/assets/379814/11714c41-edea-403e-9b64-454ba9768c08"> ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Hotfix release is underway: #28468 |
mrgrain
added
@aws-cdk/core
Related to core CDK functionality
@aws-cdk/custom-resources
Related to AWS CDK Custom Resources
labels
Dec 22, 2023
mrgrain
changed the title
❗ NOTICE (core): Core constructs fail with
❗ NOTICE (core): Setting Dec 22, 2023
Error: Cannot find module '../dist/core/<file>.generated'
StackProps.crossRegionReferences: true
or using CfnJson
fails with Error: Cannot find module '../dist/core/<file>.generated'
mrgrain
added a commit
to cdklabs/aws-cdk-notices
that referenced
this issue
Dec 22, 2023
mrgrain
changed the title
❗ NOTICE (core): Setting
❗ NOTICE (core): Stack Dec 22, 2023
StackProps.crossRegionReferences: true
or using CfnJson
fails with Error: Cannot find module '../dist/core/<file>.generated'
crossRegionReferences
and CfnJson
fail with Error: Cannot find module '../dist/core/<file>.generated'
Fix has been released: https://github.com/aws/aws-cdk/releases/tag/v2.116.1 |
paulhcsun
pushed a commit
to paulhcsun/aws-cdk
that referenced
this issue
Jan 5, 2024
…ist/core/<file>.generated'` (aws#28467) aws#28251 added new files to `aws-cdk-lib/core/lib/dist/core` but this path was excluded from the npm package, causing the above error. This fix includes the generated file into the package. Closes aws#28465 Manually tested with a locally build package that includes the fix. <img width="1449" alt="image" src="https://github.com/aws/aws-cdk/assets/379814/11714c41-edea-403e-9b64-454ba9768c08"> ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
This was referenced Feb 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/core
Related to core CDK functionality
@aws-cdk/custom-resources
Related to AWS CDK Custom Resources
management/tracking
Issues that track a subject or multiple issues
p0
Status
COMPLETED
What is the issue?
Enabling the experimental crossRegionReferences on a Stack or using the core.CfnJson construct causes app synthesis to fail with
Error: Cannot find module '../dist/core/<file>.generated'
because the files are missing from the faulty release. If you are not using either of the two features, you will not be affected by this.Error message
Error: Cannot find module '../dist/core/cfn-utils-provider.generated'
What is the impact?
Synth & deployment fails completely
Workaround
None.
Who is affected?
Everyone using
CfnJson
or has enabled the experimentalcrossRegionReferences
on a Stack with v2.116.0How do I resolve this?
Update to
v2.116.1
Related issues
#28251 (comment)
The text was updated successfully, but these errors were encountered: