#Upgrading to Nuxt 3.5 lost type defs

16 messages · Page 1 of 1 (latest)

glacial magnet
#

Just upgraded to nuxt 3.5 and now useRoute and useRouter lost their type defs. The same happens when the experimental typedPages is turned on or off. Any ideas how to fix? Currently using Typescript 5.0.4.

robust cairn
#

try to add in ur nuxt config

#
export default defineNuxtConfig({
  experimental: {
    typedPages: true
  }
})
normal kraken
robust cairn
#

This is new added option from what I did see in blog post

#

u can try and test

glacial magnet
robust cairn
#

oh ok sorry. U tried to run also npx nuxi prepare?

#

I would assume u did....

glacial magnet
#

are any of you guys having this same problem, or is it only me?

#

3.4 still works fine

normal kraken
#

You could try installing vue-router explicitly. I know there are reportedly some issues with augmenting Vue since 3.3

#

Or run npx nuxi upgrade —force which will bump those dependencies anyway

celest citrus
#

Hi 👋 there's indeed some types issue due to vue 3.3