lucia-auth / lucia

Authentication, simple and clean
https://lucia-auth.com
MIT License
8.32k stars 447 forks source link

[Docs]: Code example with astro integration not working #1574

Closed skorphil closed 3 weeks ago

skorphil commented 1 month ago

Description

Docs pointing to https://stackblitz.com/github/lucia-auth/examples/tree/main/astro/username-and-password?file=src%2Flib%2Fauth.ts

There is an error:

[ERROR] [MiddlewareCantBeLoaded] An unknown error was thrown while loading your middleware.

Caused by:
  Could not locate the bindings file. Tried:
...
pilcrowOnPaper commented 3 weeks ago

Likely an issue with better-sqlite3, not Lucia, on StackBlitz. If you remove the db.ts imports, it works fine