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.

0.4.2: diffie-hellman cannot find ./lib/primes

See original GitHub issue

Hello,

Looks like the update from a couple hours ago could be bringing in a bug with a downstream dependency.

Dependencies go:

  • webpack 1.5.1 depends on node-libs-browser ~0.4.0
  • node-libs-browser 0.4.2 depends on crypto-browserify ^3.9.13
  • crypto-browserify 3.9.13 depends on diffie-hellman ^3.0.1
  • diffie-hellman 3.0.1 breaks

Error in browser is: Cannot find module "./lib/primes", which is required from diffie-hellman/browser.js

Looks like there exists a ./lib/primes.json in that package, so maybe configuring webpack to auto check “.json” suffixes would work, I’ll try that.

Will also learn about npm-shrinkwrap after this.

Any other tips for resolving issue? Thank you.

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
pruettcommented, Apr 28, 2016

I receive this same error using v2.1.0-beta6. has this been fixed?

1reaction
UnsungHero97commented, May 17, 2016

still broken in webpack@2.1.0-beta.7. my workaround for the moment is adding the json-loader:

const JSON_LOADER = {
  loader: 'json',
  test: /\.json$/,
  include: [
    /node_modules/
  ]
};
Read more comments on GitHub >

github_iconTop Results From Across the Web

2.3 Diffie–Hellman key exchange - Brown Math
The Diffie–Hellman key exchange algorithm solves the following dilemma. ... The next step is for Alice to pick a secret integer a that...
Read more >
Microsoft security advisory: Updated support for Diffie-Hellman ...
Click Start, click Run, type regedit in the Open box, and then click OK. · Locate and then click the following subkey: ·...
Read more >
What is the Diffie–Hellman key exchange and how does it work?
The Diffie-Hellman key exchange was designed on the basis of the discrete logarithm problem being difficult to solve. The most effective ...
Read more >
Diffie-hellman key exchange (video) - Khan Academy
Ok, I might be missing something obvious, but what prevents Eve from making her own private number, and pretending to be Bob? Also,...
Read more >
Diffie–Hellman key exchange - Wikipedia
Diffie –Hellman key exchange is a mathematical method of securely exchanging cryptographic keys over a public channel and was one of the first...
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