Skip to content
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

Fix es6 module loading issue #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

yulodl
Copy link

@yulodl yulodl commented Feb 24, 2022

@sethreidnz
Copy link

sethreidnz commented Jun 21, 2023

@jsmreese Any updates on if this will be merged and released? Trying really hard to figure out how to get around this issue with modern tooling like vite but cannot figure it out. I've confirmed this does fix the issue I was having.

@sethreidnz
Copy link

I've created a fork that can be installed in place of this library in case anyone is having issues:

https://github.com/sethreidnz/moment-duration-format

npm install sethreidnz/moment-duration-format

@realAP
Copy link

realAP commented Jul 2, 2024

I can't express how thankful I am. This has solved my entire problem.

For everyone using Vite and encountering an issue like "TypeError: moment is not a function," this will fix it.

This solution works for both development and production builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants