Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RollupError - Teach me how to import defineOAuth.*EventHandlers in my custom Module #245

Open
navanjr opened this issue Oct 13, 2024 · 1 comment

Comments

@navanjr
Copy link

navanjr commented Oct 13, 2024

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.

@atinux
Copy link
Owner

atinux commented Oct 14, 2024

Hi! A reproduction would help actually :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants