-
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
TypeError: can't access property "format", e4.duration is undefined #220
Comments
I will need a bit more information like the environment that you are using it in. |
Closing due to inactivity. |
I ran into the same error, in my case i'm using vite, so the error is vite related and not by this component.. the solution is with this answer install this package do the following change: vite.config.ts or vite.config.jsimport { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { viteCommonjs, esbuildCommonjs } from '@originjs/vite-plugin-commonjs';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
optimizeDeps: {
esbuildOptions: {
plugins: [esbuildCommonjs(['react-moment'])],
},
},
}); |
Hi @xzessmedia, thank you for providing a solution. I have no experience with Vite so I cant verify it. |
Version
react-live-clock: 6.1.0
The text was updated successfully, but these errors were encountered: