lucia-auth / lucia

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

[Bug]: Cannot find module "lucia/utils" #1493

Closed Fnux8890 closed 6 months ago

Fnux8890 commented 6 months ago

Package

lucia

Describe the bug

I've installed the latest Lucia auth with Oslo also via bun. and I get this error

error: Cannot find module "lucia/utils" from ".../node_modules/@lucia-auth/oauth/dist/providers/azure-ad.js"

I'm also using the Drizzle adapter but I'm not sure if the error stems from there or not. I assume it's from the base package since the path points to that.

Im also using the Elysia Lucia plugin (again I'm not sure where the error originally stems from)

s0h311 commented 6 months ago

I've successfully "migrated" my Nuxt project to bun. I didn't have this issue. It's also worth noting, that I use postgres with prisma. Would you mind providing a minimal reproduction on https://codesandbox.io/new?utm_source=landingpage ?

Fnux8890 commented 6 months ago

I'll give it a try 👍

Fnux8890 commented 6 months ago

I'm having trouble replicating it since I'm using Elyisa, Lucia, a plugin for Lucia and Drizzle as the ORM adapter for lucia. When I first tried I got the same error where the module could be found. Now Better-sql3 can't be found in node_modules. So I'm having trouble making docker copy or install the needed dependencies 🤔

pilcrowOnPaper commented 6 months ago

The latest major version of Lucia does not have a utils module

pilcrowOnPaper commented 6 months ago

Oh ok, so the OAuth integration is deprecated for v3 https://v3.lucia-auth.com/upgrade-v3/oauth

Fnux8890 commented 6 months ago

I cant see that its deprecated 🤔

Is it that the Elysia plugin is deprecated because of the v3 update? Oh I also see the docs list another way of implementing the providers 👍