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.

Doesn't work with `weak` on Node 12

See original GitHub issue

Jest has --detectLeaks amazing feature that is powered by weak npm package.

The problem is that weak doesn’t work with Node 12 (I’ve opened an issue there: https://github.com/TooTallNate/node-weak/issues/99).

The best way would be for them to fix it. But, it looks not very maintained ATM.

At the same time I found that @danfuzz there suggesting to use other package as API-compatible replacement for weak that is using a sustainable NAPI: https://github.com/node-ffi-napi/weak-napi

Should we consider to try it and if it works to switch Jest to use that package instead?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:22 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
kirill-konshincommented, Oct 24, 2019

Are there any news? I still don’t see any releases since August.

2reactions
kirill-konshincommented, Oct 2, 2019

In which version of Jest is it available after all? Latest release was on Aug 15, so looks like this fix has not been released yet?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 10 Most Common Node.js Developer Mistakes - Toptal
However, like any other platform, Node. js is vulnerable to developer problems and issues. Some of these mistakes degrade performance, while others make...
Read more >
node.js - Error: uncaughtException: Cannot find module weak
Problem solved by downgrading npm to 6.14.12 and node to v10.24.1 versions.
Read more >
6 reasons your Node.js apps are failing - IBM Developer
Unresponsive application, possibly looping or hanging; Poor performance; Crash or abort in native code; Unexpected application behavior or functional issue. The ...
Read more >
15 Common Error Codes in Node.js and How to Fix Them
The fix for this problem is to ensure that the target service is active and accepting connections at the specified endpoint. 5.
Read more >
Fix a problem on your Android phone or tablet
If Netflix isn't working on your Android phone or tablet, you can often fix the problem with these basic troubleshooting steps.
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