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.

Module error 'superagent'.

See original GitHub issue

Version of 1.16.0 of the SDK is not usable at this point, because for some reason superagent is no longer listed as dependencies, but as peerDependencies.

Immediately upon require(‘’) an error is thrown.

Error: Cannot find module 'superagent'

Require stack:

- /work/services/analytics/node_modules/rest-facade/src/Client.js

- /work/services/analytics/node_modules/rest-facade/src/index.js

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:12
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
chris-jamiesoncommented, Oct 3, 2021

Sorry to comment on a closed issue @ngonzalvez - thank you for the recent updates to this package.

I am also seeing the error Cannot find module 'superagent-proxy'. However, I am not using a proxy in my project. I think that it’s possible that the require() call may have been unintentionally left in the file header of Client.js:

https://github.com/ngonzalvez/rest-facade/blob/e9add26810c9df54ab00a03769c1a0e0230b4db2/src/Client.js#L14-L15

Since it is also duplicated at lines 40-41, which seems appropriate.

I have opened a PR for this here: https://github.com/ngonzalvez/rest-facade/pull/62

1reaction
ngonzalvezcommented, Oct 2, 2021

I sent a PR to fix this in node-auth0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node_modules/@types/superagent/index.d.ts(23,10): error ...
When github run CI/CD with my repo, it got the error: node_modules/@types/superagent/index.d.ts(23,10): error TS2305: Module '"buffer"' has ...
Read more >
superagent - npm
Small progressive client-side HTTP request library, and Node.js module with the same API, supporting many high-level HTTP client features.
Read more >
Module '"buffer"' has no exported member 'Blob' - Stack Overflow
Have anyone been in this situation before ? I run my code with CI/CD after nest build, it gives me error : node_modules/@types/superagent/index....
Read more >
superagent - npm.io
Small progressive client-side HTTP request library, and Node.js module with the same ... superagent.post('/api/pet').then(console.log).catch(console.error); ...
Read more >
superagent.Response.error JavaScript and Node.js code ...
Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to...
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