Whilst in debugging mode - anyone else happen to come across the `#crypto not found` error
Using
bun
with @tanstack/start
and @clerk/tanstack-start
, following their getting started guides, build the app then try to run with bun .output/server/index.mjs
- yeilds a "#crypto not found" error. I know this probably more a bun issue with interoperability, but theres no resources I can find to resolve, wondering if anyone has come across similar (🤞 maybe with a fix)2 Replies
stormy-gold•10mo ago
Oh that's most likly Clerk not working on Bun I think
stormy-gold•10mo ago
If you check this https://bun.sh/docs/runtime/nodejs-apis you'll see that
node:crypto
is missing a bunch of methods. it might be worth hopping over to the clerk discord and seeing if there's any workarounds for bunBun
Node.js compatibility – Runtime | Bun Docs
Bun aims for full Node.js compatibility. This page tracks the current compatibility status.