Skip to content

Adding authkitMiddleware() causes the Vite dev client to crash #82

@1danii

Description

@1danii

Describe the bug
When the middleware is added to src/start.ts, the browser throws:
Uncaught (in promise) SyntaxError: The requested module '/node_modules/eventemitter3/index.js?...' does not provide an export named 'default'

To Reproduce
Install the package, and follow the setup guide, start vite dev server and check browser console

Desktop (please complete the following information):

  • OS: macOS
  • Browser chrome
  • authkit-nextjs version 0.8.2
  • Tanstack Start version 1.167.65

Additional context
Seems to only effect the vite dev, error doesn't appear in vite preview
Fixed by downgrading back to 0.0.6

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions