-
Notifications
You must be signed in to change notification settings - Fork 25
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
Uncaught TypeError: Cannot set properties of undefined (setting 'format') #275
Comments
Good morning! Thankyou for bringing this to our attention. If you find a solution please let us know. |
Hi, I am experiencing the same issue @anthony0030 even after performing the above suggested steps. @Ymil have you found a solution? |
Hi @Axolem, are you also using Vite? Could you let me know if you are using the latest version f the packages? |
Hello, I did not solve the problem, sorry. Maybe it's typescript that's the problem? @Axolem you are using typescript too? |
Closing due to inactivity. |
I'm currently facing this issue as well, I'll post the code I'm trying to run with the Clock component. Time.tsx:
App.tsx:
|
Do you only have this problem with typescript? |
I'm using Typescript for this project yeah, but I haven't tried it with Javascript. Using Vite + TS + React. |
I am not good with TS. I started maintaining this package but others have helped me with the TS. If you could please review the source code for any bugs in TS. I wish I had knowledge of vite to help debug. There might need to be some adjustments for the package to be vite compatible. |
My best guess is it has to be something with how Vite bundles and minifies it. Don't think it's Typescript related. |
I found this for you. This package relies on react moment. Possibly one of the workarounds in the above thread will work. Please keep me posted. |
To be honest I just ended up using this instead. If anyone wants to try the solution above can go ahead. |
Hi @gmadharh, Thanks for the update! I will be re-closing this issue since it seems to be a problem with Moment and Vite combo. Thank you for considering react-live-clock in your project. |
Hi, i have a problem when tried use the react-live-clock.
The problem is when I try to use the react-live-clock library, when I run, on the server I have no errors but it doesn't show the site in the browser and in the console I see the following message.
The error doesn't tell me anything, and I can't debug the javascript file without compiling it for vite, the problem I think is in react-moment.
This is my json package
Code implemented:
I did not find clues or possible solutions and I wanted to see if it was a problem that they already knew about.
The text was updated successfully, but these errors were encountered: