Skip to content

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

@greenstick

Description

@greenstick

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

const { createEvent } = await import("https://esm.sh/ics@3.8.1");
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: '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' }
  ]
});

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

Results in the error:

TypeError: (0 , ne.runes) is not a function
    at Ut (https://esm.sh/v135/ics@3.8.1/denonext/ics.mjs:7:3424)
    at fr (https://esm.sh/v135/ics@3.8.1/denonext/ics.mjs:21:20)
    at o (https://esm.sh/v135/ics@3.8.1/denonext/ics.mjs:51:8665)
    at ct (https://esm.sh/v135/ics@3.8.1/denonext/ics.mjs:51:8849)
    at Rr (https://esm.sh/v135/ics@3.8.1/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions