-
Notifications
You must be signed in to change notification settings - Fork 4.5k
β NOTICE: aws-cdk-lib: Resolution error: Cannot find module '../../region-info/build-tools/fact-tables'Β #31492
Description
Please add your +1 π to let us know you have encountered this
Status:
RESOLVED
Released fix in version v2.159.1
Overview:
cdk build failure in stacks due to incorrect export of '../../region-info/build-tools/fact-tables'
Complete Error Message:
On running command npx cdk synth
Error: Resolution error: Resolution error: Resolution error: Cannot find module '../../region-info/build-tools/fact-tables'
Require stack:
`- /Documents/GitHub/test/node_modules/aws-cdk-lib/aws-ec2/lib/vpc-endpoint.js
- /Documents/GitHub/test/node_modules/aws-cdk-lib/aws-ec2/lib/index.js
- /Documents/GitHub/test/node_modules/aws-cdk-lib/aws-ec2/index.js
- /Documents/GitHub/test/lib/vpc-stack.ts`
Versions:
"aws-cdk-lib": "^2.159.0",
Regression Issue
- Select this option if this issue appears to be a regression.
Last Known Working CDK Version
2.158.0
Expected Behavior
The synth operation should be successful without any error.
Current Behavior
The synth command is getting failed with the error:
Error: Resolution error: Resolution error: Resolution error: Cannot find module '../../region-info/build-tools/fact-tables'
Require stack:
Workaround:
Pin CDK version to 2.158.0
Solution:
Revert PR #31496
Reproduction Steps
Create a VPC stack by using import statement as import * as ec2 from 'aws-cdk-lib/aws-ec2';
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.159.0
Framework Version
No response
Node.js Version
18.17.0
OS
MacOS
Language
TypeScript
Language Version
No response
Other information
No response