Skip to content

[cdk-pipelines]: Typescript pipeline fails with module missing errors on code build #13666

@pankajagrawal16

Description

@pankajagrawal16

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions