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.

any-promise: global leak detected: @@any-promise/REGISTRATION

See original GitHub issue

Error: global leak detected: @@any-promise/REGISTRATION

$ npm ls any-promise
...
└─┬ koa@2.2.0
  └─┬ koa-compose@3.2.1
    └── any-promise@1.3.0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
tjcommented, Mar 19, 2017

+1 for removing haha, such a bizarre library. Promises are global, any polyfill should also just be globally replaced at the app level if the user wants. Even worse is you don’t even know what you might get https://github.com/kevinbeaty/any-promise/blob/master/register.js#L76-L86

1reaction
jonathanongcommented, Mar 20, 2017

let’s keep this open until we do replace it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

global leak errors in mocha - node.js - Stack Overflow
Yes, Mocha features a global leak detection mechanism which alerts and fails if your code under test introduces global variables.
Read more >
I can' seem to figure out what the error is for this code. I get the ...
I can' seem to figure out what the error is for this code. I get the error message "global leak detection: totalWidth". script.js....
Read more >
Merge branch 'update-everything' into 'master' (2877cd29)
var Promise = require('any-promise') // the global Promise ... This registration method will try to detect the `Promise` constructor from ...
Read more >
koa-proxies @ 0.6.2 .. 0.8.1 - Package Diff
global key for user preferred registration. -var REGISTRATION_KEY = '@@any-promise/REGISTRATION',. - // Prior registration (preferred or detected).
Read more >
https://raw.githubusercontent.com/leon-do/Offchain...
_events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.
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