TimDaub / simple-caldav

caldav in JavaScript; made easy.
20 stars 3 forks source link

SimpleCalDav is not a constructor #16

Closed tonimelisma closed 3 years ago

tonimelisma commented 3 years ago

When attempting to run similar example code as in the tests:

const { SimpleCalDav } = require("simple-caldav")

const URI = "webcal://my-fake-url"
const icloud = new SimpleCalDav(URI)

const main = async() => {
    await dav.listEvents();
}

main()

I just get the error SimpleCalDav is not a constructor. Apologies for the basic question. Any pointers?

TimDaub commented 3 years ago

Try importing SimpleCalDAV (capitalization of DAV). Please let me know how it goes.

tonimelisma commented 3 years ago

A typo then 😄 Apologies for this.