Comments (10)
That’s weird, Lucia doesn’t use chalk. I don’t remember if I published it but one of the iteration used chalk, and I had the same error. Are you using the latest version?
Yeah, it occurs when I update my dependencies including sveltekit
from lucia.
I’ll try to rebuild and republish the adapters.
from lucia.
That’s weird, Lucia doesn’t use chalk. I don’t remember if I published it but one of the iteration used chalk, and I had the same error. Are you using the latest version?
from lucia.
Yeah, not sure on this one. I tried to recreate it but I can't get the same error to appear.
from lucia.
from lucia.
Yeah, not sure on this one. I tried to recreate it but I can't get the same error to appear.
Somehow the issue did not occur when i try lucia again to my app, Weird 😕
from lucia.
I'm experiencing this, it's a bit of a strange issue. When installing the prisma adapter, it's like it's installing an old version of lucia that has the chalk dependency
coty packages/budget-api
➜ yarn add @lucia-sveltekit/adapter-prisma
yarn add v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 24 new dependencies.
info Direct dependencies
└─ @lucia-sveltekit/[email protected]
info All dependencies
├─ @lucia-sveltekit/[email protected]
├─ @sveltejs/[email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
└─ [email protected]
Done in 2.90s.
I get this entry in yarn.lock
after installing the adapter
[email protected]:
version "0.8.2"
resolved "https://registry.yarnpkg.com/lucia-sveltekit/-/lucia-sveltekit-0.8.2.tgz#ef2c7361583fc206a6b8481e2ad344957c3bfe01"
integrity sha512-YhjeKLL8L73zoH7Y9PC+H8RHPAv0tlGyiicJSseCMvYyFCHIIytIrvNPngR2uDz+OJyvBXaaTzrQ605y3Y8BBQ==
dependencies:
"@sveltejs/package" "1.0.0-next.3"
chalk "^5.0.1"
cookie "^0.5.0"
jsonwebtoken "^8.5.1"
nanoid "^4.0.0"
And the error from build (I've created a wrapper library around lucia to create a generic api provider in my sveltekit project, so this is thrown when building the sveltkit project that includes my library that includes your library)
[vite]: Rollup failed to resolve import "#ansi-styles" from "node_modules/@avamoney/budget-api/node_modules/chalk/source/index.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
error during build:
from lucia.
Downgrading @lucia-sveltekit/adapter-prisma
to 0.3.1 gets me past this, fyi
from lucia.
I've seen this pop up here and there and I've noticed that wiping out node_modules
and recreating always fixed for me but sometimes I have had to do that a few times ?? It might be something w/ how newer versions of vite "optimize" things the first time they are seen but thats just a wild guess.
from lucia.
I've removed the cli-color
dependency from the lucia-auth
so this shouldn't be an issue
from lucia.
Related Issues (20)
- Enterprise Server support for GitHub oAuth Provider HOT 1
- [Docs]: Example for ioredis and redis adapters HOT 1
- [Bug]: Invalid EX Time Error with Redis Adapter (DragonFly) HOT 2
- [Bug]: JSON stored as text using drizzle orm is not parsed HOT 2
- [Bug]: Password seems to fail hashing instead returning String HOT 1
- [Bug]: Incorrect CookieAttributes types for SvelteKit 2
- [Bug]: GitHub OAuth fails with "exp is too far in the future" HOT 4
- [Bug]: Vercel postgres - Error: Connection terminated HOT 9
- [Bug]: Default path behaviour is incorrect in SvelteKit adapter HOT 6
- [Bug]: Cannot read properties of undefined (reading 'validate') when running Astro username/password example HOT 6
- [Feature Request]: PG Client Adapter HOT 1
- [Bug]: Invalid `prisma.authSession.delete()` invocation HOT 7
- [Feature Request]: Set a custom expiration time on request HOT 1
- [Bug]: Cookie SameSite "none" not available as an option HOT 3
- [Bug]: GoogleUser not returning email HOT 5
- [Bug]: v3 DrizzlePostgreSQLAdapter default type problem
- [Bug]: Auth0 oauth integration strips out vital part of user ID HOT 4
- [Bug]: SQLITE_UNKNOWN: SQLite error: no such table: main.user HOT 7
- [Feature Request]: DatabaseKeyAttributes HOT 2
- [Docs-Bug]: 2fa validation code is worng HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lucia.