Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dependencies": {
"katex": "^0.16.11",
"next": "^14.2.3",
"next": "^16.1.7",
Copy link

@cubic-dev-ai cubic-dev-ai bot Mar 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0: Bumping next to 16.x will break the build because nextra@2.13.4 uses a custom webpack plugin (withNextra) that is incompatible with Next.js 16's default Turbopack bundler. The Next.js 16 upgrade guide explicitly warns that custom webpack configurations will cause build failures. Nextra v2 was designed for Next.js 12–14; you need to upgrade nextra and nextra-theme-docs to v4+ (which supports Next.js 15+/16) before bumping Next.js, and adapt the project's configuration and content files accordingly.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At package.json, line 4:

<comment>Bumping `next` to 16.x will break the build because `nextra@2.13.4` uses a custom webpack plugin (`withNextra`) that is incompatible with Next.js 16's default Turbopack bundler. The Next.js 16 upgrade guide explicitly warns that custom webpack configurations will cause build failures. Nextra v2 was designed for Next.js 12–14; you need to upgrade `nextra` and `nextra-theme-docs` to v4+ (which supports Next.js 15+/16) before bumping Next.js, and adapt the project's configuration and content files accordingly.</comment>

<file context>
@@ -1,7 +1,7 @@
   "dependencies": {
     "katex": "^0.16.11",
-    "next": "^14.2.3",
+    "next": "^16.1.7",
     "nextra": "^2.13.4",
     "nextra-theme-docs": "^2.13.4",
</file context>
Fix with Cubic

"nextra": "^2.13.4",
"nextra-theme-docs": "^2.13.4",
"react": "^18.3.1",
Expand Down
Loading
Loading