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

bug: Rollup Error in Nuxt while importing logtoEventHandler from @logto/nuxt #909

Open
vacijj opened this issue Jan 22, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@vacijj
Copy link

vacijj commented Jan 22, 2025

Describe the bug

If I create a server/api/auth/get-access-token.ts as described in Use in middleware or API routes, the following error occurs.

ERROR  RollupError: [plugin impound] Importing directly from module entry-points is not allowed. [importing @logto/nuxt from server/api/auth/get-access-token.ts]


undefined

The same error occurs in a server middleware.

Expected behavior

No error must occur.

How to reproduce?

See reproduction example.

@vacijj vacijj added the bug Something isn't working label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant