-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Closed
Labels
@aws-cdk/aws-codebuildRelated to AWS CodeBuildRelated to AWS CodeBuild@aws-cdk/pipelinesCDK Pipelines libraryCDK Pipelines librarybugThis issue is a bug.This issue is a bug.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.
Description
It exactly the same issue as mentioned here on stackoverflow
https://stackoverflow.com/questions/66590492/aws-codebuild-tsc-error-ts2307-cannot-find-module
If we follow https://cdkworkshop.com/20-typescript/70-advanced-topics/200-pipelines.html.
Essentially, npm i (or npm ci) + tsc works fine locally, but when done over CodeBuild, it appears my dependencies don't have their dependencies installed, causing tsc to break.
Reproduction Steps
What did you expect to happen?
To build successfully on code build
What actually happened?
Build fails with missing module errors
Environment
- CDK CLI Version : 1.94.1
- Framework Version:
- Node.js Version: v12.19.1
- OS : Linux
- Language (Version): TypeScript
Other
https://stackoverflow.com/questions/66590492/aws-codebuild-tsc-error-ts2307-cannot-find-module
This is 🐛 Bug Report
Metadata
Metadata
Labels
@aws-cdk/aws-codebuildRelated to AWS CodeBuildRelated to AWS CodeBuild@aws-cdk/pipelinesCDK Pipelines libraryCDK Pipelines librarybugThis issue is a bug.This issue is a bug.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.