nuxt-auth-utils
nuxt-auth-utils copied to clipboard
RollupError - Teach me how to import defineOAuth.*EventHandlers in my custom Module
I have notice that since v0.3.0 each oAuth providers event handler are exported individually instead of just oauth. I assumed these eventHandler would be available for import from #imports. However I get...
[nitro 2:04:38 PM] ERROR RollupError: node_modules/my-org/my-auth/dist/runtime/common/server/routes/auth/discord.get.mjs (2:9): "defineOAuthDiscordEventHandler" is not exported by "virtual:#imports", imported by "node_modules/my-org/my-auth/dist/runtime/common/server/routes/auth/discord.get.mjs".
Auto import and explicit import from #imports both work in for all eventHandlers in my playground but not in my custom module.
Hi! A reproduction would help actually :)