glynnbird commented on issue #265:
URL: https://github.com/apache/couchdb-nano/issues/265#issuecomment-918290603


   I think this is as a result of using Nano in a browser, rather than 
server-side from within a Node.js project. So the browser doesn't know what the 
`http`, `https` and `stream` modules are. 
   
   I'm no expert in transpiling Node.js modules for browser use.
   
   If I were writing to CouchDB from within the browser, I'd use [Fetch 
API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) - not quite as 
easy as Nano, but definitely not unmanageable - and you get to learn the 
CouchDB API too! :)
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to