fix(nextjs): downgrade nextjs due to known issue with bun commonjs module bundling#1073
Merged
Conversation
Contributor
There was a problem hiding this comment.
Greptile Summary
This PR implements a targeted fix for a compatibility issue between Next.js 15.5.0 and Bun's CommonJS module bundling system. The changes downgrade Next.js from version 15.5.0 to ^15.3.2 and adjust source map configuration to work around Bun issue #21137.
The fix involves two key modifications:
- Package downgrade: Next.js is reverted from 15.5.0 to ^15.3.2 in
package.json, allowing patch updates within the stable 15.3.x series while avoiding the problematic version - Source map configuration adjustment: The
next.config.tsfile removes the generalproductionBrowserSourceMaps: falsesetting and addsturbopackSourceMaps: falseto the experimental section, indicating a shift to Turbopack-specific source map control
This approach maintains the project's Bun-centric architecture (evident from the oven/bun:alpine Docker base image and bun engine requirements) while ensuring build stability. The solution is temporary, designed to maintain functionality until the upstream Bun issue is resolved, at which point Next.js can be upgraded again.
Confidence score: 5/5
- This PR is safe to merge with minimal risk as it addresses a specific, documented compatibility issue
- Score reflects a well-researched fix targeting a known upstream bug with clear documentation and testing
- No files require special attention as the changes are minimal and focused
2 files reviewed, no comments
waleedlatif1
added a commit
that referenced
this pull request
Aug 21, 2025
arenadeveloper02
pushed a commit
to arenadeveloper02/p2-sim
that referenced
this pull request
Sep 19, 2025
arenadeveloper02
pushed a commit
to arenadeveloper02/p2-sim
that referenced
this pull request
Sep 19, 2025
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.
Summary
Type of Change
Testing
created a new branch and tested the build action to ensure it deploys to docker
Checklist