Skip to content

Upgrade React and Babel for Next.js 16 compatibility#1156

Merged
francinelucca merged 4 commits intodependabot/npm_and_yarn/lib/octicons_react/next-16.1.5from
copilot/sub-pr-1155
Feb 11, 2026
Merged

Upgrade React and Babel for Next.js 16 compatibility#1156
francinelucca merged 4 commits intodependabot/npm_and_yarn/lib/octicons_react/next-16.1.5from
copilot/sub-pr-1155

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 29, 2026

Next.js 16.1.5 requires React 18+ as a peer dependency. The project was using React 17, causing peer dependency errors.

Dependency upgrades

React ecosystem:

  • React & React-DOM: ^17.0.2^18.2.0
  • @testing-library/react: ^12.1.5^13.4.0
  • @types/react: ^18.0.20^18.2.0

Babel (compatibility with React 18):

  • @babel/core, @babel/generator, @babel/preset-env, @babel/preset-react, @babel/types: 7.19.x^7.22.0

Additional fixes

  • Added import/namespace eslint-disable comment in pages/index.js to suppress false positive from destructuring non-existent default export
  • Updated tree-shaking test snapshot for bundle size change (6.292kB → 6.084kB) from Babel upgrade

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jan 29, 2026

⚠️ No Changeset found

Latest commit: 2ea1f5c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Co-authored-by: francinelucca <40550942+francinelucca@users.noreply.github.com>
Copilot AI changed the title [WIP] Bump next from 14.2.35 to 16.1.5 in /lib/octicons_react Upgrade React and Babel for Next.js 16 compatibility Jan 29, 2026
Copilot AI requested a review from francinelucca January 29, 2026 03:19
@francinelucca francinelucca marked this pull request as ready for review February 11, 2026 04:24
@francinelucca francinelucca requested a review from a team as a code owner February 11, 2026 04:24
@francinelucca francinelucca merged commit 9725532 into dependabot/npm_and_yarn/lib/octicons_react/next-16.1.5 Feb 11, 2026
8 checks passed
@francinelucca francinelucca deleted the copilot/sub-pr-1155 branch February 11, 2026 04:24
francinelucca added a commit that referenced this pull request Mar 17, 2026
* Bump next from 14.2.35 to 16.1.5 in /lib/octicons_react

Bumps [next](https://github.com/vercel/next.js) from 14.2.35 to 16.1.5.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](vercel/next.js@v14.2.35...v16.1.5)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 16.1.5
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Upgrade React and Babel for Next.js 16 compatibility (#1156)

* Initial plan

* Upgrade React and Babel to fix Next.js 16 peer dependency errors

Co-authored-by: francinelucca <40550942+francinelucca@users.noreply.github.com>

* Update Node.js version to 20 in CI workflow

* Upgrade Node.js version from 18 to 20 in CI

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: francinelucca <40550942+francinelucca@users.noreply.github.com>

* fix nextJs pages

* lint fix

* remove package-lock.json

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: francinelucca <40550942+francinelucca@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants