You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
at build time, nitro is using the worker key to get the file path -> ./dist/runtime/browser/crypto.mjs
this is what i figured playing with the different value, but it seems consistent with the bun preset config (here): since bun is not defined, worker is next in line.
at run time, bun is using the node.imports key to get the file path -> ./dist/runtime/node/crypto.mjs, which causes the issue.
it seems consistent with this section of their documentation.
We could remove the worker item of the bun preset exportConditions (which would fix the issue) - but i am unsure about the implications.
This happened with @clerk/backend, but i am assuming it would be the case with any other dependency using a subpath imports.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
https://github.com/p9f/nitro-clerk-bun-repro
Describe the bug
It seems that one can't install @clerk/backend on a bun + nitro server.
It fails with the error:
My understanding is:
worker
key to get the file path ->./dist/runtime/browser/crypto.mjs
bun
is not defined,worker
is next in line.node.imports
key to get the file path ->./dist/runtime/node/crypto.mjs
, which causes the issue.We could remove the
worker
item of the bun presetexportConditions
(which would fix the issue) - but i am unsure about the implications.This happened with
@clerk/backend
, but i am assuming it would be the case with any other dependency using a subpath imports.Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: