question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot resolve 'env' in .../node_modules/argon2-browser/dist'

See original GitHub issue

I am following the example you have for node in my React application. I have added const argon2 = require('argon2-browser'); and I am trying to make use of argon2.hash(...). I encounter the following error for some reason.

[1] [ error ] ./node_modules/argon2-browser/dist/argon2.wasm
[1] Module not found: Can't resolve 'env' in '/path/node_modules/argon2-browser/dist'

I am new to using WASM in node so perhaps it’s me not configuring things correctly. I have installed the npm module using npm install --save argon2-browser

Thank you for your time in advance!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:24 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
antellecommented, Aug 28, 2019

Cool! It was a bit surprising that there are two configs, I thought, maybe one of them doesn’t work at all?

0reactions
afranchtcommented, Aug 28, 2019

That worked! Fantastic! How did you figure it out?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven in Intellij IDEA cannot resolve symbol env.HOSTNAME
I am running Intellij IDEA on Ubuntu 11.10. My Maven pom.xml file was unable to resolve a symbol, a system property environmental variable...
Read more >
Error: Unable to resolve module `@env` from `src/utils.ts ...
I'm using yarn. React Native info System: OS: macOS 10.15.4 CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz Memory: 116.45 MB /...
Read more >
Maven: cannot resolve environment variables : IDEA-96358
We do have support of environment variables in maven properties. So there are few questions I would like to ask: does it happen...
Read more >
Resolution of environment variables - Serverless Framework
Resolution of environment variables. To automatically load environment variables from .env files (with the help of the dotenv package), set useDotenv: true ...
Read more >
Troubleshoot issues when passing environment variables to ...
Your application is unable to read the environment variable. The format of variable in the container definition is incorrect. The environment ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found