Closed galabra closed 4 years ago
Ooh yep, looks like a bug in this plugin, passing the wrong data into moment-timezone
. When I try your configuration I get the same failure, but if I try using matchZones: 'America/Indiana/Indianapolis'
instead of matchCountries
, it works fine.
I'll take a look and get a fix ready.
The bug was a hidden assumption in my code that the list of zones for each country would not contain any links to other zones, because that's how the IANA source files define them. This turned out not to be true: https://github.com/moment/moment-timezone/issues/835
I've added a workaround and released version 1.3.0.
I've added the following object to the
plugins
array inwebpack.config
:When I try to start my project, I get the following error stack:
The faulty line is
endI = untils.length + 1
, so I tried printing the faultysource
that's missinguntils
and apparently it's this one, which contains only thename
key:Couldn't find any previous occurrence to this error, so I hope you can help. Thanks a lot!