diff --git a/src/provider.ts b/src/provider.ts index e38e51afb..bb2764440 100644 --- a/src/provider.ts +++ b/src/provider.ts @@ -52,7 +52,7 @@ export function resolveProvider (nuxt: any, key: string, input: InputProvider): input.provider = BuiltInProviders.includes(input.provider) ? require.resolve('./runtime/providers/' + input.provider) - : nuxt.resolver.resolveModule(input.provider) + : nuxt.resolver.resolvePath(input.provider) return { ...input,