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

Doesn't work on latest superagent(march 26, 2020) #1

Open
shierro opened this issue Mar 26, 2020 · 1 comment
Open

Doesn't work on latest superagent(march 26, 2020) #1

shierro opened this issue Mar 26, 2020 · 1 comment

Comments

@shierro
Copy link

shierro commented Mar 26, 2020

Hi, i tried using the example and got

superdebug is not a function
@Enet4
Copy link

Enet4 commented Dec 7, 2020

To those stumbling upon this issue, the latest version of the package exports the middleware function via default, possibly for compatibility with ECMAScript modules. The following works with superagent ^6.1.0.

import superagentdebug from 'superagent-debugger';

or

const superagentdebug = require('superagent-debugger').default;

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

2 participants