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

Nuxt4の機能を試してみる #11

Merged
merged 1 commit into from
Dec 30, 2024
Merged

Nuxt4の機能を試してみる #11

merged 1 commit into from
Dec 30, 2024

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.

1 participant