Skip to content

moment.location is not defined #6635

Closed
Closed

Description

@raphaelcamar

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.

Activity

  1. breehall commented on Mar 7, 2023

    @breehall
    Contributor

    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!

  2. raphaelcamar commented on Mar 8, 2023

    @raphaelcamar
    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

  3. breehall commented on Mar 8, 2023

    @breehall
    Contributor

    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.

  4. raphaelcamar commented on Mar 8, 2023

    @raphaelcamar
    Author

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

  5. added
    answered
    on Apr 10, 2023
  6. github-actions commented on Apr 14, 2023

    @github-actions

    👋 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    answered

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions