-
Notifications
You must be signed in to change notification settings - Fork 76
Description
Describe the bug
After globally updating aws-cdk to v2.1104.0, cdk watch (and cdk deploy --watch) no longer trigger a deploy when TypeScript files change. No "watch is observing..." messages are printed.
Regression Issue
- Select this option if this issue appears to be a regression.
Last Known Working CDK Version
2.1034.0
Expected Behavior
CDK watches project files and redeploys when a file is modified.
Current Behavior
Files are not watched and nothing is triggered when files are modified.
Reproduction Steps
Update global aws-cdk:
npm install -g [email protected]
Call watch or deploy --watch:
cdk watch
Touch the stack file to trigger a deploy:
touch lib/*-stack.ts
Possible Solution
The only fix was downgrading to v2.1034.0
npm install -g [email protected]
Additional Information/Context
Projects are TypeScript, scaffolded with cdk init app --language=typescript. Nothing special, just a few lambdas, S3 and CloudFront. MacOS Sequoia 15.7.3.
Same result with node v24.13.0 and v20.20.0
Downgrading the global aws-cdk to version 2.1034.0 (npm install -g [email protected]) made search work again.
These initial output watch messages never print with the recent aws-cdk versions.
'watch' is observing directory 'lib' for changes
'watch' is observing directory 'lambda' for changes
'watch' is observing directory 'bin' for changes
CDK CLI Version
2.1104.0
Framework Version
No response
Node.js Version
24.13.0 and 20.20.0
OS
MacOS
Language
TypeScript
Language Version
No response
Other information
No response