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

moment.location is not defined #6635

Closed
Tracked by #7630
raphaelcamar opened this issue Mar 7, 2023 · 5 comments
Closed
Tracked by #7630

moment.location is not defined #6635

raphaelcamar opened this issue Mar 7, 2023 · 5 comments
Labels
answered Issues answered by the EUI team - auto-closes open issues in 7 days if no follow-up response

Comments

@raphaelcamar
Copy link

Hi, recently I'm facing a lot of problems at build time using Vite. At the page that I use EuiDatePicker, is breaking, and giving the following error: moment$1.locale is not a function.
Captura de tela de 2023-03-07 10-51-05
In development works fine, but in the build breaks. I don't know if the error is with the EUI or with vite

ElasticUI version: 40.0.0
Moment version: 2.29.

@breehall
Copy link
Contributor

breehall commented Mar 7, 2023

Thanks for reporting this. It looks like you're on an older version of EUI. Do you mind upgrading to a later version of EUI and letting me know if you still experience the same thing? If so, could you also provide steps to allow me to replicate this on my end as well? Thank you!

@raphaelcamar
Copy link
Author

I tried with the newest version of elastic, and still got problems. Even so, if worked I could not switch, because broked all my UI. I created a repo reproducing the error: Repo. Thaks for the attention

@breehall
Copy link
Contributor

breehall commented Mar 8, 2023

Thank you for providing this repo! We do have known issues with Vite and don't officially support it at this time. In the meantime, I can document the issue your facing with the other known issues we have.

@raphaelcamar
Copy link
Author

raphaelcamar commented Mar 8, 2023

Perfect, thanks for your time. If I encounter a solution, I will post here

@cee-chen cee-chen added the answered Issues answered by the EUI team - auto-closes open issues in 7 days if no follow-up response label Apr 10, 2023
@github-actions
Copy link

👋 This issue hasn't seen activity in 3 days, so we're automatically closing this issue as answered. Please leave a comment if that's not the case, or if you have any remaining questions or issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered Issues answered by the EUI team - auto-closes open issues in 7 days if no follow-up response
Projects
None yet
Development

No branches or pull requests

3 participants