Tahul / nuxt-edgedb

💽 Nuxt 3 integration for EdgeDB
71 stars 7 forks source link

Nuxt fails to resolve plugin when using 'auth' option. #1

Closed juni0r closed 1 year ago

juni0r commented 1 year ago

Nuxt 3.8.1 fails to resolve a plugin when auth is enabled. It's trying to resolve node_modules/nuxt-edgedb-module/dist/runtime/plugin/edgedb-auth.ts, but since this is the build output, it's supposed to be edgedb-auth.mjs.

Demo repo with minimal setup here

nuxt.config.ts

export default defineNuxtConfig({
devtools: { enabled: true },
modules: ['nuxt-edgedb-module'],
edgeDb: {
auth: true,
},
})
Screenshot 2023-11-20 at 17 41 41
Tahul commented 1 year ago

Hey @juni0r ; thank you for reporting the issue and for the reproduction.

I just made this fix and published it on 0.0.8.

Could you try it and let me know if that solves it?

juni0r commented 1 year ago

Hey @Tahul, thanks for the quick fix! Plugin gets loaded now but I ran into another issue. Will open a separate issue.

That's a hell of a module you created there btw. I read the code and learnt a few things. Can't wait to get it to work.