diff --git a/packages/auto-import-resolver/index.ts b/packages/auto-import-resolver/index.ts index ca04eefc2..abeb9872f 100644 --- a/packages/auto-import-resolver/index.ts +++ b/packages/auto-import-resolver/index.ts @@ -32,7 +32,7 @@ export function PrimeVueResolver(options: PrimeVueResolverOptions = {}): Compone if (cMeta) { return ( - options?.resolve(cMeta, 'component') ?? { + options?.resolve?.(cMeta, 'component') ?? { from: cMeta.from } ); @@ -48,7 +48,7 @@ export function PrimeVueResolver(options: PrimeVueResolverOptions = {}): Compone if (dMeta) { return ( - options?.resolve(dMeta, 'directive') ?? { + options?.resolve?.(dMeta, 'directive') ?? { as: dMeta.as, from: dMeta.from }