Module '@node-rs/bcrypt-wasm32-wasi' not found in nextjs 15 with bun
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.5k
- Forks
- 52
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 19
Description
I installed @node-rs/bcrypt to my project to replace bcryptjs and @types/bcryptjs, as I was interested in how much faster it is than bcryptjs. But I get this error:
Module not found: unable to resolve '@node-rs/bcrypt-wasm32-wasi'.
> 1 | export * from '@node-rs/bcrypt-wasm32-wasi'.
and I have checked the other topics, but I am confused if the solution mentioned in #792 can be applied in the bun environment or if @node-rs/bcrypt can be used with bun correctly.
I would appreciate your help.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the missing-module error in a Next.js 15 project using Bun, then inspect the @node-rs/bcrypt entry point that re-exports @node-rs/bcrypt-wasm32-wasi. Compare the behavior with the approach discussed in issue #792; done means the package can be used correctly in this environment or its compatibility limitation is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bun, nextjs, nodejs, rust
- Domain
- backend, security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100