Skip to content

DatePicker: import Moment from "moment" causes an issue #86

Description

@lpetkov

Hi,

Importing Moment in the Datapicker component this way:
import Moment from "moment"

Causes the following error when I import the component in Framer:

moment_1.default' is undefined)— index.html:4151

I managed to fix the issue (the component works fine in Storybook and Framer) by importing Moment like so:

import * as Moment from 'moment';

See this discussion that I came across for details: aurelia/skeleton-navigation#606

Thanks,
Lachezar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions