fix: Switch Docker build stage from Bun to Node.js (PR #355 CI fix)#356
Closed
github-actions[bot] wants to merge 1 commit intofeat/api-docs-summaryfrom
Closed
fix: Switch Docker build stage from Bun to Node.js (PR #355 CI fix)#356github-actions[bot] wants to merge 1 commit intofeat/api-docs-summaryfrom
github-actions[bot] wants to merge 1 commit intofeat/api-docs-summaryfrom
Conversation
…ompatibility Fixed: - Replace Bun with Node.js 22-slim for build-base stage - Change 'bun install' to 'npm install --production=false' - Change 'bun run build' to 'npm run build' Root Cause: Bun has incomplete N-API support for native modules used by next-intl/plugin, causing 'symbol napi_register_module_v1 not found' error during Next.js build. Solution: Use Node.js for the build stage to ensure full N-API compatibility while maintaining Node.js for the runtime stage (no behavior changes). CI Run: https://github.com/ding113/claude-code-hub/actions/runs/20300261542
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI Auto-Fix
Original PR: #355
Failed CI Run: Non-Main Branch CI/CD #20300261542
Problem
The Docker build failed with a native module incompatibility error:
Root Cause: Bun runtime has incomplete N-API support for native Node.js modules. The
next-intl/plugindependency (used innext.config.ts) requires full N-API compatibility that Bun doesn't provide yet.Solution
Switch the Docker build stage from
oven/bun:slimtonode:22-slim:oven/bun:slimnode:22-slimbun installnpm install --production=falsebun run buildnpm run buildnode:22-slim(unchanged)node:22-slim(unchanged)Fixes Applied
deploy/DockerfileImpact Assessment
✅ No runtime behavior changes - Runtime stage already uses Node.js
⚠️ Build time may increase slightly - npm is slower than Bun for installs
✅ No dependency changes - Same packages, just different build tool
✅ Build reliability improved - Full N-API compatibility ensured
Verification Checklist
Alternative Approaches Considered
Auto-generated by Claude AI - Safe mechanical fix only