nuxt-auth-utils icon indicating copy to clipboard operation
nuxt-auth-utils copied to clipboard

Cannot use useUserSession when setting imports scan on false

Open Robbe95 opened this issue 1 year ago • 1 comments

When you enable

  imports: {
    scan: false,
  },

in your nuxt.config.ts file useUserSession stops working (not importing). I also can't find a way to manually import it. Other modules like useI18n keep working when doing this.

When removing scan: false, it works as intended.

Is it possible to support this feature?

Robbe95 avatar Sep 16 '24 09:09 Robbe95

Have you try to import from #imports ?

import { useUserSession } from '#imports'

atinux avatar Sep 16 '24 21:09 atinux