You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
/usr/local/bin/npx
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object. (/usr/local/bin/npx:3:13)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/usr/local/bin/npx' ]
}
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.
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
The text was updated successfully, but these errors were encountered: