Error with fetch called from npm module
I am trying to use the
When I try to call any request method from the library, I get an error with
Possibly relevant links:
- The
- Implementation of fetch that gets called by them: https://www.npmjs.com/package/node-fetch
- The test showing this error: https://github.com/Maarrk/silverbullet-carddav/blob/ed209cb939b935cfe50169dbff7ba8ed2df7771c/online.test.ts#L27-L30
I've only used Deno for a few weeks but I really like it so far, thanks in advance for any help or pointers to relevant docs
I couldn't even find the
tsdav NPM package with Deno, and have run into a problem with making an HTTP request, which seems specific to Deno.When I try to call any request method from the library, I get an error with
HttpsClientRequest somewhere deep within some compatibility layer:Possibly relevant links:
- The
tsdav library: https://tsdav.vercel.app/ https://www.npmjs.com/package/tsdav- Implementation of fetch that gets called by them: https://www.npmjs.com/package/node-fetch
- The test showing this error: https://github.com/Maarrk/silverbullet-carddav/blob/ed209cb939b935cfe50169dbff7ba8ed2df7771c/online.test.ts#L27-L30
I've only used Deno for a few weeks but I really like it so far, thanks in advance for any help or pointers to relevant docs
I couldn't even find the
_http_outgoing.ts in my local deno folder on my own...webdav request made easy
npm
WebDAV, CALDAV, and CARDDAV client for Nodejs and the Browser. Latest version: 2.0.7, last published: 2 months ago. Start using tsdav in your project by running
npm i tsdav. There are 4 other projects in the npm registry using tsdav.
npm
A light-weight module that brings Fetch API to node.js. Latest version: 3.3.2, last published: 7 months ago. Start using node-fetch in your project by running
npm i node-fetch. There are 33917 other projects in the npm registry using node-fetch.
GitHub
A SilverBullet Plug to sync personal contacts with a CardDAV server - Maarrk/silverbullet-carddav
