Skip to content

Conversation

@reisuta
Copy link
Owner

@reisuta reisuta commented Dec 30, 2024

対応内容

  • npx nuxi upgradeの実行
  • compatibilityVersion: 4をnuxt.config.tsに追記
  • npx codemod@latest nuxt/4/migration-recipeの実行
  • store、types、constsディレクトリをapp配下に移動

要点

  • nuxt4への移行はコマンドベースで比較的簡単に行えそう
  • 一部のディレクトリは既存構成だと読み込めないので、app配下に移動
  • srcDirオプションなどを使えばnux3のディレクトリ構造でも使うことができる
  • nuxt4自体はまだ正式にはリリースされていない

参考URL

https://nuxt.com/docs/getting-started/upgrade
nuxt/nuxt#27716
nuxt/nuxt#29151

@reisuta reisuta merged commit 9ffe506 into main Dec 30, 2024
1 check passed
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