Closed SSANSH closed 1 year ago
` 12845a12846,12868
"march equinox in +09:00": { "name": { "en": "Spring Equinox Day", "jp": "春分の日" }, "active": [ { "from": "1948-07-20T00:00:00.000Z" } ] }, "substitutes march equinox in +09:00 and if sunday then next monday": { "substitute": true, "name": { "en": "Spring Equinox Day", "jp": "春分の日" }, "active": [ { "from": "1973-04-12T00:00:00.000Z" } ] },
13100a13124,13146 }, "september equinox in +09:00": { "name": { "en": "Autumnal Equinox Day", "jp": "秋分の日" }, "active": [ { "from": "1948-07-20T00:00:00.000Z" } ] }, "substitutes september equinox in +09:00 and if sunday then next monday": { "substitute": true, "name": { "en": "Autumnal Equinox Day", "jp": "秋分の日" }, "active": [ { "from": "1973-04-12T00:00:00.000Z" } ] ` all this code is not cover by test and don't work.
Had this same issue attempting to generate 2022 holidays for both Japan and Taiwan, but it appears to be date-dependent, was a problem on Dec. 7th but seems fine today, same version (3.14.2).
I try with 2022 and its doesnt work today on my side, something is broken with date-holidays-parser and then astronomia packages.
Please find a sample project at https://github.com/commenthol/date-holidays-example which proves that the module is usable either as ESM or commonJS module. I suspect that the issue is related to your project setup. Please feel free to share a sample project which demonstrates your experienced issues.
I now can confirm the issue. I oversaw that it only occurs with equinox dates.
This was introduced by updating to rollup ^3 in date-holidays-parser.
For the moment please add npm i date-holidays-parser@3.4.1
to your project, this will downgrade the parser.
Will see how to provide a fix here.
Hi, Thanks for your sample project but my exemple was already a sample project, so I don't need this and I confirm this not come from my sampe project :) . moreover yes I have the same result as you (see thread number two), rules are all with equinox and I have the same suspect date-holidays-parser. So Yes I will downgrade the parser as you suggest, and then I will wait for a fix.
Hi @SSANSH, date-holidays-parser@3.4.3 reverts back to rollup@2 Can you please give it a try with this downgraded version?
@commenthol I tried with npm i date-holidays-parser@3.4.1 and it doesnt work in fact. I have the same ussue, sorry for the previous bad answer.
@SSANSH Can you please remove all node_modules and your lock file and do a install install? Do not forget to remove the date-holidays-parser@3.4.3 line in you package.json. That should work. I'll bump the versions with the next patch.
Following codes failed on lastest version of date-holidays@3.16.12 . its works with the version "date-holidays@2.1.1", do you know why?