unplugin-vue-router: Cannot find module 'vue-router/auto' or its corresponding type declarations

With version 0.8.x the typings for vue-router/auto disappeared. They don’t seem to be part of the unplugin-vue-router/client that gets added to tsconfig, nor are they present in the typed-router.d.ts anymore

Screenshot 2024-02-22 at 16 04 53

which leands to

Screenshot 2024-02-22 at 16 04 11

repo: https://github.com/Ribeiro-Tiago/repro-repo

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Comments: 16 (7 by maintainers)

Commits related to this issue

Most upvoted comments

For folks who ran into this even with moduleResolution: Bundler — try bumping up vue-router from 4.1 to 4.3. That fixed it for me!

I think Vuex types need to be fixed 😅

I have the same problem have to go back to 7.0.

Thanks It was the “moduleResolution”: “Bundler” that fix it.