Skip to content

Commit fd312af

Browse files
committed
fix(nuxt): add missing async
1 parent 757d2fb commit fd312af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nuxt/src/core/nuxt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ async function initNuxt (nuxt: Nuxt) {
226226
})
227227

228228
// Add nuxt types
229-
nuxt.hook('prepare:types', (opts) => {
229+
nuxt.hook('prepare:types', async (opts) => {
230230
opts.references.push({ types: 'nuxt' })
231231
opts.references.push({ path: resolve(nuxt.options.buildDir, 'types/app-defaults.d.ts') })
232232
opts.references.push({ path: resolve(nuxt.options.buildDir, 'types/plugins.d.ts') })

0 commit comments

Comments
 (0)