Closed jstrunk closed 6 months ago
As a workaround, running npx pdk
in the buildspec seems to run the globally installed version, and the build succeeds.
When I have had this problem I have removed node_modules and package-lock.json. Then run npx install
and the error seems to go away.
This issue is now marked as stale because it hasn't seen activity for a while. Add a comment or it will be closed soon. If you wish to exclude this issue from being marked as stale, add the "backlog" label.
Hi - is this still an issue as i've tried to reproduce with no luck :(
This is resolved in https://github.com/aws/aws-pdk/commit/62f9229f58b0bb7e0ce12c67c9a643168bd3ecaa
Describe the bug
When running
pdk
on a Python monorepo in CodeBuild, I get the error "Cannot find module '../lib/cli.js'".I’m using feature branch pipelines It happens in CodeBuild in a new branch that worked fine on my local machine. New branches cloned from main continue to work. There are new projects in the .projenrc.py, and some package versions are different. I confirmed that builds from main work with both pdk 0.22.42 and 0.22.44. In troubleshooting, I determined that the pdk command being run in CodeBuild is the one installed by poetry. On my local machine, it also runs the pdk installed by poetry. There’s no difference in yarn.lock.
Expected Behavior
I expect
pdk
to run successfully.Current Behavior
Error message from build logs
Reproduction Steps
buildspec
Possible Solution
No response
Additional Information/Context
No response
PDK version used
0.22.44
What languages are you seeing this issue on?
Python
Environment details (OS name and version, etc.)
CodeBuild STANDARD_7_0