nextjs - 💡(How to fix) Fix serverExternalPackages behaves inconsistently in v15 and v16 which causes server error [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vercel/next.js#85294Fetched 2026-04-08 02:16:31
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×2closed ×1commented ×1issue_type_added ×1

Code Example

.next
  └─ standalone
      └─ node_modules
          └─ some-package
              └─ dist
                  └─ esm
                      ├─  index.js
                      └─ payloadHeader.proto

---

.next
  └─ standalone
      └─ node_modules
          └─ some-package
              └─ dist
                  └─ esm
                      ├─  index.js
                      └─ (payloadHeader.proto disappear)

---

.next
  └─ standalone
      └─ node_modules
          └─ some-package
              └─ dist
                  └─ esm
                      ├─  index.js
                      └─ payloadHeader.proto

---

.next
  └─ standalone
      └─ node_modules
          └─ some-package
              └─ dist
                  └─ esm
                      ├─  index.js
                      └─ (payloadHeader.proto disappear)

---

nextjs 16.0.0
RAW_BUFFERClick to expand / collapse

Link to the code that reproduces this issue

https://github.com/vercel/next.js/issues

To Reproduce

v15 behavior

.next
  └─ standalone
      └─ node_modules
          └─ some-package
              └─ dist
                  └─ esm
                      ├─  index.js
                      └─ payloadHeader.proto

v16 behavior

.next
  └─ standalone
      └─ node_modules
          └─ some-package
              └─ dist
                  └─ esm
                      ├─  index.js
                      └─ (payloadHeader.proto disappear)

Current vs. Expected behavior

v15 behavior

.next
  └─ standalone
      └─ node_modules
          └─ some-package
              └─ dist
                  └─ esm
                      ├─  index.js
                      └─ payloadHeader.proto

v16 behavior

.next
  └─ standalone
      └─ node_modules
          └─ some-package
              └─ dist
                  └─ esm
                      ├─  index.js
                      └─ (payloadHeader.proto disappear)

Provide environment information

nextjs 16.0.0

Which area(s) are affected? (Select all that apply)

Turbopack

Which stage(s) are affected? (Select all that apply)

next build (local)

Additional context

No response

extent analysis

TL;DR

The issue with payloadHeader.proto disappearing in the .next/standalone directory in Next.js 16.0.0 may be related to changes in how Turbopack handles files, and a potential workaround could involve adjusting the build configuration or file handling in the next.config.js file.

Guidance

  • Review the next.config.js file for any configuration options related to Turbopack or file handling that may be causing the issue.
  • Check the documentation for Next.js 16.0.0 and Turbopack to see if there are any known issues or changes that could be affecting the behavior.
  • Consider adding a custom build step or script to ensure that the payloadHeader.proto file is properly included in the build output.
  • Verify that the issue is specific to the next build command and not related to other build tools or dependencies.

Notes

The exact cause of the issue is unclear without more information, and the solution may depend on the specific requirements and configuration of the project. Further investigation and testing may be needed to determine the root cause and find a reliable fix.

Recommendation

Apply workaround: Adjust the build configuration or file handling in the next.config.js file to ensure that the payloadHeader.proto file is properly included in the build output, as this is a more targeted and reversible approach than upgrading or downgrading dependencies.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

nextjs - 💡(How to fix) Fix serverExternalPackages behaves inconsistently in v15 and v16 which causes server error [1 comments, 2 participants]