lucia-auth / lucia

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

[Bug]: Missing exports condition for svelte (conflicting results) #1251

Closed ciscoheat closed 11 months ago

ciscoheat commented 11 months ago

Package

lucia-auth

Describe the bug

I get this error when testing a project that includes lucia with vitest:

[vite-plugin-svelte] WARNING: The following packages use a svelte resolve configuration in package.json that has conflicting results and is going to cause problems future.

lucia@2.7.3

Please see https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#conflicts-in-svelte-resolve for details.

It seems like it's a simple fix in package.json for lucia, according to https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition

pilcrowonpaper commented 11 months ago

I'm not sure why the error is appearing considering Lucia does't export any Svelte components

ciscoheat commented 11 months ago

I think it's happening when vite-plugin-svelte is parsing the package.json for lucia, so it finds the deprecated "svelte": "dist/index.js line there, and issues the warning.

ciscoheat commented 11 months ago

Thank you! :) Will test when the next version is released.