You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
praveenperera
changed the title
Moment is not a function when using module: es6 in bsconfig
Moment is not a function when using ES6 modules in bsconfig
Oct 25, 2018
When using es6 module
"module": "es6"
in bsconfig I getMoment is not a function
.But it works normally if I switch to
"module": "commonjs"
The text was updated successfully, but these errors were encountered: