jkbrzt / rrule

JavaScript library for working with recurrence rules for calendar dates as defined in the iCalendar RFC and more.
https://jkbrzt.github.io/rrule
Other
3.27k stars 507 forks source link

Cannot set properties of undefined (setting 'IMPLEMENTED') #567

Open AmazingMoon opened 1 year ago

AmazingMoon commented 1 year ago

Using rrule 2.7.1. This error will appear from time to time, I don't know how it is caused, sometimes the package.json update will appear. Maybe the import method is wrong

import { isFullyConvertible } from "rrule/dist/esm/nlp/index.js";
import type { ByWeekday, Options, RRule, Weekday } from "rrule";
import type { GetText } from "rrule/dist/esm/nlp/totext";
import ToText from "rrule/dist/esm/nlp/totext";
import { isArray, isNumber, isPresent } from "rrule/dist/esm/helpers";
import { ALL_WEEKDAYS } from "rrule/dist/esm/weekday";
AmazingMoon commented 1 year ago
import ToText from "rrule/dist/esm/nlp/totext";

Looks like this is causing the error.