-
Notifications
You must be signed in to change notification settings - Fork 837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to resolve the 'tz' build error. #385
Comments
Same issue here.
|
Does anyone solve this issue now? |
@MingyuJeon Installing
|
the |
I somehow got it to work as this: Then in the relevant file:
|
We came across this and it was because the package maintainers had created a breaking change by removing the 2010-2020 file and replacing it with 2012-2022 rather than adding a new file for the different time range. |
I resolved this issue using Also using |
since we are both using angular, this is how I did it.
|
May help somebody: |
I could not import moment-timezone@0.5.14 with moment@2.20.1. They were apparently incompatible. However, changing moment to version 2.18.1 fixed it for me. I used this import syntax:
|
With 2018 typescript use:
|
You need to update the dependencies tz-offset module from version 0.0.1 to version 0.0.2 Here is the link for tz-offset module, |
It looks like the I fixed it by uninstalling that package and using this code (from above):
|
The solution is: Then in the relevant file: import moment from "moment"; After this you can use moment and tz functions. |
this worked well for me! |
This is the only solution that works for me ! |
You shouldn't need to import both |
Error below :
The text was updated successfully, but these errors were encountered: