ics icon indicating copy to clipboard operation
ics copied to clipboard

createEvent fails with Deno: TypeError: (0 , ne.runes) is not a function

Open greenstick opened this issue 4 months ago • 0 comments

As the title says. Minimum reproducible example using the arguments from the documentation (works in Deno REPL):

const { createEvent } = await import("https://esm.sh/[email protected]");
const { error, value } = 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: '[email protected]' },
  attendees: [
    { name: 'Adam Gibbons', email: '[email protected]', rsvp: true, partstat: 'ACCEPTED', role: 'REQ-PARTICIPANT' },
    { name: 'Brittany Seaton', email: '[email protected]', dir: 'https://linkedin.com/in/brittanyseaton', role: 'OPT-PARTICIPANT' }
  ]
});

console.log(error);
console.log(value);

Results in the error:

TypeError: (0 , ne.runes) is not a function
    at Ut (https://esm.sh/v135/[email protected]/denonext/ics.mjs:7:3424)
    at fr (https://esm.sh/v135/[email protected]/denonext/ics.mjs:21:20)
    at o (https://esm.sh/v135/[email protected]/denonext/ics.mjs:51:8665)
    at ct (https://esm.sh/v135/[email protected]/denonext/ics.mjs:51:8849)
    at Rr (https://esm.sh/v135/[email protected]/denonext/ics.mjs:51:8347)
    at <anonymous>:2:26
null
undefined

I've looked through the code in this repo to try and trace the issue but I'm unable to find a reference to the line triggering the error. That said, looking through recent closed issues I found ones referencing the runes library (#279 and #270) – perhaps this issue is related.

In case this is an error with my code, any guidance would be tremendously appreciated.

greenstick avatar Oct 17 '24 00:10 greenstick