#Migrating from nuxt v2 to nuxt v3

2 messages · Page 1 of 1 (latest)

sterile tundra
#

Hello, im migrating project for new version, and at this step with tsconfig.json i try to generate tsconfig with npx nuxi prepare, but got error

ERROR Cannot read properties of undefined (reading 'nuxt')
at nuxtStyledResources (node_modules/@nuxtjs/style-resources/lib/module.js:7:25)

covert basin
#

I've went through this process (still going through the migration actually) and restarted it about 10 times and the only thing I can recommend is to NOT try to upgrade to Nuxt 3, but create a fresh Nuxt 3 project and start moving things over one by one.

We were never able to upgrade, mainly due to modules and the size of the project, so we're now running 2 versions in parallel and moving things over slowly.

Building the Nuxt 3 base took us about 3 months before we could even move over the first (static) pages, but we have a Saas product, so it's quite large.