Skip to content

[Examples] Upgrade next version#808

Merged
akaashrp merged 1 commit intomlc-ai:mainfrom
akaashrp:next
Apr 3, 2026
Merged

[Examples] Upgrade next version#808
akaashrp merged 1 commit intomlc-ai:mainfrom
akaashrp:next

Conversation

@akaashrp
Copy link
Copy Markdown
Collaborator

@akaashrp akaashrp commented Apr 3, 2026

No description provided.

@akaashrp akaashrp merged commit 70d4aaa into mlc-ai:main Apr 3, 2026
6 checks passed
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the next dependency in the examples/next-simple-chat/package.json file. A critical issue was identified where the specified version ^16.2.2 for next is non-existent, which would lead to installation failures. It is recommended to use version ^14.2.18 to ensure compatibility with the current React 18 environment.

"eslint": "8.44.0",
"eslint-config-next": "13.4.7",
"next": "^13.5.6",
"next": "^16.2.2",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

The version ^16.2.2 for the next package does not exist; the current latest major version is 15. This change will cause dependency resolution and installation to fail. If the intention was to upgrade to the latest version compatible with the current React 18 dependency, please use ^14.2.18. Note that upgrading to Next.js 15 would require updating react and react-dom to version 19, and eslint-config-next should also be updated to match the new major version.

Suggested change
"next": "^16.2.2",
"next": "^14.2.18",

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.

1 participant