gitpod not prebuild correctly #21063
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
in-progress
This issue is being actively worked on.
p1
Describe the bug
When opening the repo with GitPod, it throws the prebuild error
Expected Behavior
to prebuild correctly with no error
Current Behavior
gitpod@aws-awscdk-mork8kacwjx:/workspace/aws-cdk$ HISTFILE=/workspace/.gitpod/cmd-0 history -r; {
Error: Cannot find module '@lerna/project'
Require stack:
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:101:18)
at Object. (/workspace/aws-cdk/scripts/check-yarn-lock.js:17:21)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/workspace/aws-cdk/scripts/check-yarn-lock.js' ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
exit
🤙 This task ran as a workspace prebuild
Reproduction Steps
Just open this repo with GitPod
Possible Solution
Modify the init task here
aws-cdk/.gitpod.yml
Line 9 in 4e0c80f
to have it execute:
yarn install && ./scripts/foreach.sh yarn build
Additional Information/Context
No response
CDK CLI Version
latest
Framework Version
No response
Node.js Version
all
OS
gitpod
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: