Skip to content

Moment is not a function when using ES6 modules in bsconfig #31

Open
@praveenperera

Description

@praveenperera

When using es6 module "module": "es6" in bsconfig I get Moment is not a function.

But it works normally if I switch to "module": "commonjs"

Uncaught TypeError: Moment is not a function
    at NewObjective.bs.js:75
    at Object._1 (curry.js:69)
    at Object.render (ReasonReact.js:313)
    at finishClassComponent (react-dom.development.js:13538)
    at updateClassComponent (react-dom.development.js:13501)
    at beginWork (react-dom.development.js:14090)
    at performUnitOfWork (react-dom.development.js:16416)
    at workLoop (react-dom.development.js:16454)
    at HTMLUnknownElement.callCallback (react-dom.development.js:145)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:195)

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