You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2021/09/13 15:09:58 UTC

[GitHub] [couchdb-nano] glynnbird commented on issue #265: Unable to resolve modules when used in Angular project

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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org