Skip to content

VScode + Vitest extension auto-creates "typed-router.d.ts" #613

Closed Answered by JarvisH
JarvisH asked this question in Questions and Help
Discussion options

You must be logged in to vote

Ah nevermind, I took your advice and added the correct paths depending on the result of process.cwd() set the root to the directory of the vite config file.

In vite.config.ts:

plugins: [
   VueRouter({
        routesFolder: [
          {
            src: 'src/pages'
          }
        ],
        root: __dirname
      }),
]

Thanks for your help.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JarvisH
Comment options

Comment options

You must be logged in to vote
1 reply
@posva
Comment options

Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #612 on March 24, 2025 13:31.