You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I want to ignore a holiday by using unsetRule. The holiday does not appear in the list returned by getHolidays however when checking for that date using isHoliday I get the following Typerror
const hd = new Holidays();
hd.init('GR', { types: ['public'] });
hd.isHoliday('2023-04-14'); //returns true
hd.unsetRule('orthodox -2'); //returns true
hd.isHoliday('2023-04-14'); // => throws error
Uncaught TypeError: Cannot read property 'inYear' of undefined
at Holidays.isHoliday (node_modules/date-holidays-parser/lib/Holidays.cjs:220:33)
at Holidays._dateByRule (node_modules/date-holidays-parser/lib/Holidays.cjs:396:28)
The text was updated successfully, but these errors were encountered:
Hello,
I want to ignore a holiday by using
unsetRule
. The holiday does not appear in the list returned by getHolidays however when checking for that date using isHoliday I get the following TyperrorThe text was updated successfully, but these errors were encountered: