Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Following the "Building a Cross-account CI/CD Pipeline" workshop. The npm build is failing #32

Open
aba0405 opened this issue Jan 23, 2023 · 3 comments

Comments

@aba0405
Copy link

aba0405 commented Jan 23, 2023

Hello,

I am following along with the Building a Cross-account CI/CD Pipeline. I am at the Build CDK project stage. Looks like whenever run the npm run build it is showing the following errors.

npm-error

Then when I run cdk ls it also shows an error. I guess that is also expected after the npm build issue

cdk-ls

I have the following versions

versions

@joyacv2
Copy link

joyacv2 commented Jan 27, 2023

Having the same issue

@joyacv2
Copy link

joyacv2 commented Jan 27, 2023

Hi @aba0405

I update the package.json (remove package-lock.json before running npm install again) to the following and works:
{ "name": "my-pipeline", "version": "0.1.0", "bin": { "cdk": "bin/pipeline.js" }, "scripts": { "build": "tsc", "watch": "tsc -w", "test": "jest", "cdk": "cdk" }, "devDependencies": { "@types/jest": "^29.4.0", "@types/node": "^18.11.18", "@types/prettier": "2.6.0", "aws-cdk": "2.47.0", "jest": "^29.4.1", "ts-jest": "^29.0.5", "ts-node": "^10.9.1", "typescript": "^4.9.4" }, "dependencies": { "aws-cdk-lib": "2.47.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } }

@aba0405
Copy link
Author

aba0405 commented Jan 30, 2023

Thanks a lot. It worked as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants