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
I'm not able to reproduce this problem, if you can post some runnable code and include details of the node.js version you are using I can investigate further
I'm using Vite to build front-end and had the same problem.
Workaround is to copy and modify plugin file:
change closure to named function momentPreciseRangePlugin and add line:
export default momentPreciseRangePlugin;
And were you're using momentum with plugin it should be:
import moment from "moment";
import momentPreciseRangePlugin from "./components/moment-precise-range";
momentPreciseRangePlugin(moment);
import * as moment from 'moment';
import 'moment-precise-range-plugin';
var days = moment("2014-01-01 12:00:00").preciseDiff("2015-03-04 16:05:06")
The text was updated successfully, but these errors were encountered: