Skip to content

Conversation

@TkymHrt
Copy link
Member

@TkymHrt TkymHrt commented Jan 13, 2026

対応Issue

https://nut-m-e-g.slack.com/archives/C020WQ3GY07/p1768051810911529

概要

Next.js 16へのアップデート、およびReact 19への対応を行いました。
あわせて、ESLintの設定も修正しました。
eslint-plugin-tailwindcss が安定版でv4対応してなかったので、eslint-plugin-better-tailwindcss に変更しました!

主な変更点

  • Next.js / React Upgrade
    • Next.js: v16.1.1
    • React: v19.2.3
    • React 19対応に伴う型定義や依存関係の解消
  • Fixes
    • ESLint v9対応および、既存のWarning箇所の修正
    • Noto Sans JP フォントのインポート設定修正と再適用

画面スクリーンショット等

  • N/A

テスト項目

  • Next.js 16 / React 19 環境での起動確認 (make build && make run)
  • Lintエラーなし
  • 主要ページでレイアウト崩れがないか
  • Noto Sans JP フォントが正しく適用されているか

備考

Turbopackが効くようになったので開発環境が軽くなりました~

…fety across components

- Modified multiple component files to import `type JSX` from React.
- Updated `FileUploadField` to allow `null` for `fileInputRef`.
@gemini-code-assist
Copy link

Summary of Changes

Hello @TkymHrt, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

このプルリクエストは、プロジェクトの主要なフロントエンドライブラリであるNext.jsとReactを最新バージョンにアップグレードし、それに伴うESLint設定の刷新とフォント管理の最適化を行いました。これにより、開発環境のパフォーマンス向上(Turbopackの有効化)と、将来的なメンテナンス性の向上が期待されます。また、React 19への対応により、新しいReactの機能や改善を活用できるようになります。

Highlights

  • Next.jsとReactのアップグレード: Next.jsをv14.2.4からv16.1.1へ、Reactをv18.3.1からv19.2.3へアップグレードしました。これにより、最新のフレームワーク機能とパフォーマンス改善が利用可能になります。
  • ESLint設定の刷新: ESLint v9に対応するため、設定ファイルを.eslintrc.jsonからeslint.config.mjsに移行し、新しいフラット設定形式を採用しました。また、eslint-plugin-tailwindcssがv4に対応していなかったため、eslint-plugin-better-tailwindcssに置き換えました。
  • Noto Sans JPフォントの適用方法の改善: Noto Sans JPフォントのインポート設定を修正し、next/font/googleを使用して最適化された方法で適用するように変更しました。これにより、フォントの読み込みと表示が改善されます。
  • React 19対応に伴う型定義の修正: React 19へのアップグレードに伴い、複数のコンポーネントファイルでReactおよびJSXの型インポートを明示的に追加しました。
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@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

Next.js v16およびReact v19へのアップグレード対応、お疲れ様です。依存関係の大幅な更新に伴い、ESLintの設定を新しいFlat Config形式に移行し、Tailwind CSSのv4対応プラグインへの変更、フォント読み込み方法の改善など、多岐にわたる修正が含まれており、素晴らしいです。
コード全体として、新しいバージョンへの追従が適切に行われていると感じました。
いくつか、より改善できる点や修正が必要と思われる点についてコメントしましたので、ご確認ください。特にESLintの設定については、意図通りに動作しない可能性があるため、ご確認いただけると幸いです。

@TkymHrt TkymHrt requested review from Kubosaka and hikahana January 13, 2026 15:55
@TkymHrt TkymHrt changed the title Refactor/upgrade nextjs 16 react 19 Next.js 16 / React 19 へのアップグレード Jan 13, 2026
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.

2 participants