Does @node-rs/argon2 work on Cloudflare pages?

When I try to build locally I get the following error. Im using a M1 MacBook.
✘ [ERROR] Build failed with 1 error:

✘ [ERROR] No loader is configured for ".wasm" files:
argon2.wasm32-wasi-JB7JJ664.wasm?url

_worker.js:20508:22:
20508 │ import __wasmUrl from "./argon2.wasm32-wasi-JB7JJ664.wasm?url";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





✘ [ERROR] Failed to build _worker.js.
✘ [ERROR] Build failed with 1 error:

✘ [ERROR] No loader is configured for ".wasm" files:
argon2.wasm32-wasi-JB7JJ664.wasm?url

_worker.js:20508:22:
20508 │ import __wasmUrl from "./argon2.wasm32-wasi-JB7JJ664.wasm?url";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





✘ [ERROR] Failed to build _worker.js.
1 Reply
Miloš
Miloš2w ago
No it doesn't. I use PBKDF2 on CF because of this. I did find this idea though: https://mli.puffinsystems.com/blog/lucia-auth-cloudflare-argon2 You could create a separate rust worker and have it do Argon2 hashing for you
Want results from more Discord servers?
Add your server