Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Next.js to 15 #1

Merged
merged 5 commits into from
Nov 6, 2024
Merged

Upgrade Next.js to 15 #1

merged 5 commits into from
Nov 6, 2024

Conversation

sugtao4423
Copy link
Owner

  • @types/node: v20.17.6
  • next: 15.0.2
    • packages
      • react react-dom: 19.0.0-rc-02c0e824-20241028
      • dev eslint-config-next: 15.0.2
    • next.config.js rename to .ts
    • ts compilerOptions.target to ES2017
  • nuqs: 2.1.1
    • Wrap with <NuqsAdapter> in root layout
  • dev sass: 1.80.6
  • dev stylelint: 16.10.0
  • dev typescript: 5.6.3

Silence sass warnings 31124c9

Next.js 15 にすると大量の warning が出る。

Deprecation The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

それを黙らすために silenceDeprecations'legacy-js-api' を追加。

また、現状 bootstrap は新たに非推奨になったSassのグローバル関数などに対応できておらず以下のような warning が出る。

Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use math.unit instead.

green() is deprecated. Suggestion:
color.channel($color, "green", $space: rgb)
などなど

すべて黙らすためには silenceDeprecations'mixed-decls', 'color-functions', 'global-builtin', 'import' を指定すれば良いが、 quietDeps: true でライブラリのお気持ち表明だけを黙らせることができるためそれを使用。
ただ bootstrap を使うために @import だけは必要なためそれを残す形に。

@sugtao4423 sugtao4423 merged commit 9ed3467 into master Nov 6, 2024
@sugtao4423 sugtao4423 deleted the upgrade/next15 branch November 6, 2024 12:23
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