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

WebApp Deployment Failed #28

Open
kali70 opened this issue Oct 30, 2022 · 4 comments
Open

WebApp Deployment Failed #28

kali70 opened this issue Oct 30, 2022 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@kali70
Copy link

kali70 commented Oct 30, 2022

Hello David and thank you very much for this amazing CDK path.

I am following your videos using this git repo but I am having an issue deploying to CloudFront in the P1 branch using cdkv2.

I posted the error below which I got after I run npx cdk deploy

Error: Bundling did not produce any output. Check that content is written to /asset-output.
at AssetStaging.bundle (/Users/khaled.ali/development/AWS/Projects/WEB/CDK/ps-serverless-app/node_modules/aws-cdk-lib/core/lib/asset-staging.js:2:841)
at AssetStaging.stageByBundling (/Users/khaled.ali/development/AWS/Projects/WEB/CDK/ps-serverless-app/node_modules/aws-cdk-lib/core/lib/asset-staging.js:1:4506)
at stageThisAsset (/Users/khaled.ali/development/AWS/Projects/WEB/CDK/ps-serverless-app/node_modules/aws-cdk-lib/core/lib/asset-staging.js:1:1867)
at Cache.obtain (/Users/khaled.ali/development/AWS/Projects/WEB/CDK/ps-serverless-app/node_modules/aws-cdk-lib/core/lib/private/cache.js:1:242)
at new AssetStaging (/Users/khaled.ali/development/AWS/Projects/WEB/CDK/ps-serverless-app/node_modules/aws-cdk-lib/core/lib/asset-staging.js:1:2262)
at new Asset (/Users/khaled.ali/development/AWS/Projects/WEB/CDK/ps-serverless-app/node_modules/aws-cdk-lib/aws-s3-assets/lib/asset.js:1:736)
at Object.bind (/Users/khaled.ali/development/AWS/Projects/WEB/CDK/ps-serverless-app/node_modules/aws-cdk-lib/aws-s3-deployment/lib/source.js:1:1200)
at /Users/khaled.ali/development/AWS/Projects/WEB/CDK/ps-serverless-app/node_modules/aws-cdk-lib/aws-s3-deployment/lib/bucket-deployment.js:1:2867
at Array.map ()
at new BucketDeployment (/Users/khaled.ali/development/AWS/Projects/WEB/CDK/ps-serverless-app/node_modules/aws-cdk-lib/aws-s3-deployment/lib/bucket-deployment.js:1:2848)

You help is appreciated

Khaled Ali

@davidtucker
Copy link
Owner

The cdkv2 branch is not finalized yet. I am working on an update due to a change in bundling. The supported branches (p1, p2, p3, p4, p5, and p6) all work with the most recent version of the CDK v1. I'll be updating the course for CDK v2 soon. I'll keep this open until I address the bundling issue.

@davidtucker davidtucker added the bug Something isn't working label Oct 30, 2022
@davidtucker davidtucker added this to the cdkv2 milestone Oct 30, 2022
@kali70
Copy link
Author

kali70 commented Oct 30, 2022 via email

@elailai94
Copy link

Thanks for the quick update, David! I really appreciate the time and effort you put in to keep the course up-to-date with the CDK updates. I've also been trying to find a workaround for this issue. I'm also following the Building Serverless Applications on AWS path on Pluralsight. I'm learning a lot and love the way that you explain the concepts!

@askthecloudguy
Copy link

Hi David!
I've been taking your courses in Pluralsight, really love them - appreciate everything you do. I started a project following your serverless course and got stuck here, on deploying the web app. Just like the original poster said - error complains about nothing being produced as an output:
Error: Bundling did not produce any output. Check that content is written to /asset-output.
Is it something that can be fixed easily? I'd really appreciate any hints. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants