Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module '@node-rs/argon2-wasm32-wasi' #248

Open
dsapoetra opened this issue Aug 5, 2024 · 4 comments
Open

Error: Cannot find module '@node-rs/argon2-wasm32-wasi' #248

dsapoetra opened this issue Aug 5, 2024 · 4 comments

Comments

@dsapoetra
Copy link

Hi there

I tried deploying the apps in fly.io as suggested. But the server keeps crashing with this error in log. FYI, the server works in local without this error:

2024-08-05T23:34:31.860 app[32871562c617e8] mia [info] 🔍 Validating environment variables...

2024-08-05T23:34:32.592 app[32871562c617e8] mia [info] Error: Cannot find module '@node-rs/argon2-wasm32-wasi'

2024-08-05T23:34:32.592 app[32871562c617e8] mia [info] Require stack:

2024-08-05T23:34:32.592 app[32871562c617e8] mia [info] - /app/node_modules/@node-rs/argon2/index.js

Please help, thank you

@sodic
Copy link
Collaborator

sodic commented Aug 8, 2024

@infomiho Any idea about this one? Argon sounds like one of the things you were dealing with.

@dsapoetra In the meantime, I can maybe help you out if you're comfortable sharing your project's Zip. You can jump into our discord and share it with me there: https://discord.com/invite/rzdnErX

@Martinsos
Copy link
Member

Also posibbly relevant: napi-rs/node-rs#862 .

@Martinsos
Copy link
Member

Another user hit this: https://discord.com/channels/686873244791210014/1273962730566717471/1273962730566717471 .

Might be caused by this issue on the oslo side: pilcrowonpaper/oslo#25 .

@infomiho
Copy link
Collaborator

infomiho commented Aug 19, 2024

The linked Oslo issue says:

This only seems to be an issue because it's a dependency of an ESM package. It works fine when @node-rs/argon2 etc is installed and imported directly

We are no longer using Oslo but the Argon2d directly since: wasp-lang/wasp#2210

So we might not have this issue with the latest Wasp version.

We are not using Vite for the server - but we are using esbuild for bundling. That could the be next thing to explore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants