Nuxt 3 プロジェクトのパッケージ更新まとめ
概要 Nuxt 3.2.3 から 3.20.2 へのメジャーアップデートを含む、依存パッケージの大規模更新を実施しました。 主要なパッケージ更新 パッケージ 更新前 更新後 nuxt 3.2.3 3.20.2 @nuxt/content 2.5.2 3.11.0 @nuxtjs/i18n 8.0.0-beta.10 10.2.1 vuetify 3.1.8 3.7.6 sass 1.58.3 1.83.4 @mdi/js 7.1.96 7.4.47 新規追加パッケージ better-sqlite3: ^12.5.0 - @nuxt/content v3 の依存 vue-i18n: ^11.0.0 - i18n モジュールの依存 対応が必要だった変更点 1. @nuxt/content v3 への移行 content.config.ts の新規作成が必要になりました。 i e } m x ) p p c } c o o o o r r l c } n t t l o ) t e n t s e { d c t y o n e t e p u t d f i n e r . e a o t : c c f u n : e o i l s ' : n n t : d p f e e a i C d { f g g o e i e . n f n ' t t i e , s e n C . n e o m t C l d C o l ' o n e n t c f e t i n i g t o , C n o ( d n { e f f i i g n ( e { C o l l e c t i o n } f r o m ' @ n u x t / c o n t e n t ' 2. @nuxtjs/i18n v10 への移行 nuxt.config.ts の変更点 i } i } 1 1 8 l ] l v } 8 l ] b } l v B n o , a u , A n o , u , a u e : c { { n e f f : c { { n o r n e f a g I a t a d p u g I o { l c c D 1 l e { l c c l t n D 1 r e o o i 8 l r e o o e i t i 8 e s d d r n b s d d : m i r n : e e : : a : e e i m : : : : c : : { z e [ " { k [ e O " " " " l L " " T n l . j e o o j e r l o / a n c c a n a y c i " " a a " " n : a 1 , , l l , , s l 8 e e l t e n i i s : l l a r s . s s / a a t u " c o o " l n n i e , o : : , a g g o , n n u u n f " " g a a D i j e , g g i g a n e e r . _ - : : e 末 t J U c 尾 s P S " " t ス " " " j e i ラ , , , a n v ッ - - e シ f f J U : ュ i i P S 削 l l " " f 除 e e , , a 外 : : l 部 f f s フ " " i i e ァ j e l l , イ a n e e ル . . : : 化 j j s s " " " " j e a n } } . . , , j j s s " " } } , , i s o → l a n g u a g e i18n.config.ts の新規作成 e } x ) p l f ) o e a ; r g l t a l c b d y a e : c f k a f L u a o l l c t s a e l d , e e : f i " n j e a I " 1 , 8 n C o n f i g ( ( ) = > ( { localesフォルダの移動 locales/ → i18n/locales/ ...