N
Nuxt3mo ago
Jonas

ERROR Pre-transform error: [unimport] failed to find "useUserSession" imported from "#imports"

I just added srcDir: 'app/' to my nuxt.config.ts, in the hope to get a faster devserver and now I get
ERROR Pre-transform error: [unimport] failed to find "useUserSession" imported from "#imports"
ERROR Pre-transform error: [unimport] failed to find "useUserSession" imported from "#imports"
3 Replies
Jonas
JonasOP3mo ago
I am stupid
ethan!
ethan!3w ago
how did you fix? i have the same problem
Jonas
JonasOP3w ago
Use auto-importing (do not import it manually) or import it from somewhere else. Don't import from #imports. It could also be, that you imported it in the backend and not in the frontend (nitro and not nuxt).
Want results from more Discord servers?
Add your server