From de523f341633301eef7307505d3df6a1958aa33a Mon Sep 17 00:00:00 2001 From: David Mellen Date: Tue, 5 Nov 2024 08:41:46 +0100 Subject: [PATCH] fix: use await to install module --- src/module.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module.ts b/src/module.ts index 51f3b3d..37cfdc2 100644 --- a/src/module.ts +++ b/src/module.ts @@ -18,14 +18,14 @@ export default defineNuxtModule({ name, version, }, - setup(_options, nuxt) { + async setup(_options, nuxt) { const resolver = createResolver(import.meta.url) nuxt.options.alias['@remindgmbh/nuxt-typo3-solr'] = resolver.resolve('runtime') if (!hasNuxtModule('@remindgmbh/nuxt-typo3')) { - installModule('@remindgmbh/nuxt-typo3') + await installModule('@remindgmbh/nuxt-typo3') } addPlugin({