atinux / nuxt-auth-utils

Add Authentication to Nuxt applications with secured & sealed cookies sessions.
MIT License
974 stars 91 forks source link

A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file instead? #191

Open jonasfroeller opened 1 month ago

jonasfroeller commented 1 month ago

image

I have no idea why this happens now, but I can not work on my project, till I solve this.
I used auth utils for 2 months and didn't have any issues.

This fixes the issue:

  "pnpm": {
    "overrides": {
      "vite-plugin-checker": "0.8.0",
      "vue-tsc": "2.0.29",
    }
  }

but introduces another error

image

I think this issue belongs in vue-tsc, but I just had issues with vue-tsc when I used auth utils.

FlorientPlouvin commented 1 month ago

Got the exact same issue, not sure it's a good idea to downgrade vue-tsc version

Vterebenin commented 1 month ago

Same here... had to make autoImport: false in a nuxt.config.ts to resolve issue

stefanschlipfi commented 1 month ago

I got the same issue.

Bombastickj commented 3 days ago

I am having the same issue!

DrFuehrer02 commented 1 day ago

@atinux @stranavad it seems to originate from the addServerImportsDir call's in the module.ts. Some of the exported types couse the error

kofeinstyle commented 1 day ago

The same issue. Maybe this is related with compatibilityVersion: 4 option?

Bombastickj commented 21 hours ago

The same issue. Maybe this is related with compatibilityVersion: 4 option?

Unfortunately not, this minimal reproduction is not set to compatibilityVersion: 4.

https://stackblitz.com/edit/github-mmpbcp?file=nuxt.config.ts