napi-rs / napi-rs/node-rs

Module '@node-rs/bcrypt-wasm32-wasi' not found in nextjs 15 with bun

Open
#964 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.