Module error 'superagent'.
See original GitHub issueVersion 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
Issue Analytics
- State:
- Created 2 years ago
- Reactions:12
- Comments:6 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 therequire()
call may have been unintentionally left in the file header ofClient.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
I sent a PR to fix this in node-auth0.