Skip to content

fix: add esbuild to webapp devDependencies for Docker build#366

Merged
tmokmss merged 1 commit intoaws-samples:mainfrom
remote-swe-user:fix/add-esbuild-to-webapp-1769691475
Jan 29, 2026
Merged

fix: add esbuild to webapp devDependencies for Docker build#366
tmokmss merged 1 commit intoaws-samples:mainfrom
remote-swe-user:fix/add-esbuild-to-webapp-1769691475

Conversation

@remote-swe-user
Copy link
Contributor

Summary

This PR fixes the failing CDK Deploy CI by adding esbuild to packages/webapp/package.json devDependencies.

Problem

The docker/job.Dockerfile tries to run npx esbuild in the packages/webapp directory to bundle the async job runner:

RUN cd packages/webapp && npx esbuild src/jobs/*.ts --bundle --outdir=dist --platform=node --charset=utf8

However, esbuild was not listed as a dependency in packages/webapp/package.json, causing the Docker build to fail with:

sh: line 1: esbuild: command not found

Solution

Added esbuild: "^0.25.0" to the devDependencies of packages/webapp/package.json, matching the version used in other packages (packages/slack-bolt-app and packages/worker).

@tmokmss tmokmss merged commit 79533ce into aws-samples:main Jan 29, 2026
8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants