Skip to content

Moment.duration is not a function #22

Open
@kennetpostigo

Description

@kennetpostigo

Hey I ran into this error where the code compiles, but when I check the browser I get an error in the console saying that Moment.duration is not a function. Heres the code

MomentRe.Moment.subtract(
  ~duration=MomentRe.duration(7, `days),
  MomentRe.momentNow()
)

Heres the error:
screen shot 2018-02-22 at 10 37 29 am

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions