adamgibbons / ics

iCalendar (ics) file generator for node.js
ISC License
732 stars 155 forks source link

Fix error with runes lib #266

Closed kusyka911 closed 5 months ago

kusyka911 commented 10 months ago

Fix error with runes lib

Error demo:

const event = ICS.createEvent({
        start: [2018, 5, 30, 6, 30],
        duration: { hours: 6, minutes: 30 },
        title: "Bolder Boulder",
        description: "Annual 10-kilometer run in Boulder, Colorado",
        location: "Folsom Field, University of Colorado (finish line)",
        url: "http://www.bolderboulder.com/",
        geo: { lat: 40.0095, lon: 105.2669 },
        categories: ["10k races", "Memorial Day Weekend", "Boulder CO"],
        status: "CONFIRMED",
        busyStatus: "BUSY",
        organizer: { name: "Admin", email: "Race@BolderBOULDER.com" },
        attendees: [
          {
            name: "Adam Gibbons",
            email: "adam@example.com",
            rsvp: true,
            partstat: "ACCEPTED",
            role: "REQ-PARTICIPANT",
          },
          {
            name: "Brittany Seaton",
            email: "brittany@example2.org",
            dir: "https://linkedin.com/in/brittanyseaton",
            role: "OPT-PARTICIPANT",
          },
        ],
      });

      if (event.error) {
        console.error(event.error)
      }
      console.debug(event);

screenshot

Screenshot 2023-12-22 at 10 30 47
trung3t123 commented 1 month ago

didn't changed, still meet the same issue on 3.8.0

LitvinSO commented 1 month ago

Also, the latest versions have the following error

TypeError: (0 , _runes.runes) is not a function
    at foldLine (fold-line.js:11:1)
    at formatHeader (format.js:25:1)
    at run (index.js:109:1)
    at createEvents (index.js:128:1)
    at createEvent (index.js:87:1)

which seems to have something to do with this