#Should I upgrade to Nuxt3 and how?

6 messages · Page 1 of 1 (latest)

marsh bough
#

I wonder if I can safely upgrade my project to Nuxt3. I would like to change from Vuex to Pinia along the upgrade. (Or is it better to change to Pinia beforehand?) There are some other things that must keep working:
nuxtjs/auth-next
nuxtjs/axios
nuxtjs/i18n
nuxtjs/vuetify
Also I saw people talking about starting a new Nuxt3 project instead. The project is in development for over a year now and there are 425 components and 40 pages. I'm afraid that starting over new might be more work than upgrading.

dusty reef
#

Are you migrating from vue 2? If yes, the migration can be a lot of work tbh, if vue 3, then I believe should not take a lot of time.

Nuxt hasnt made an official auth module yet - you can try https://github.com/sidebase/nuxt-auth.

nuxtjs/axios can be replaced with the $fetch api I guess.

i18n module for nuxt 3 is available.

Vuetify I believe can be migrated without too much of work.

marsh bough
dusty reef
marsh bough
#

Ok, so the way to go would be either start a new Nuxt3 project with the above mentioned modules and then copy paste most of the code from the current state or

  1. Vue2 -> Vue3 via migration build
  2. Vuex -> Pinia
  3. Nuxt2 -> Nuxt3 with the changes above

Right?

dusty reef
#
Debbie Codes

My personal website was built many years ago and had collected quite a large amount of code as I used my site to play around and experiment new features of Nuxt. It took me ages to finally decide to migrate cause lets face it, we all hate migrations. But I finally did it and I'm so glad I did. I'm going to share with you the steps I took to migr...