Skip to content

Commit

Permalink
fix(nuxt): add new unplugin-vue-router types
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 9, 2024
1 parent 4b5859c commit 2b26139
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/nuxt/src/pages/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export default defineNuxtModule({
nuxt.hook('prepare:types', ({ references }) => {
// This file will be generated by unplugin-vue-router
references.push({ path: declarationFile })
references.push({ types: 'unplugin-vue-router/client' })
})

const context = createRoutesContext(resolveOptions(options))
Expand Down

0 comments on commit 2b26139

Please sign in to comment.