Skip to content

moment.location is not defined #6635

@raphaelcamar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    answeredIssues answered by the EUI team - auto-closes open issues in 7 days if no follow-up response

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions