rotaready / moment-range

Fancy date ranges for Moment.js
The Unlicense
1.69k stars 202 forks source link

Problem with es6 import #252

Open trading-peter opened 5 years ago

trading-peter commented 5 years ago

When I try to import version ^4.0.0 in chrome like shown in the readme, I get an error: Uncaught SyntaxError: The requested module './node_modules/moment-range/dist/moment-range.js' does not provide an export named 'extendMoment'

When I try version ^3.0.0 I get: Uncaught SyntaxError: The requested module '../../es6-symbol/index.js' does not provide an export named 'default'

Here is a glitch project that shows the error. I'm on Chrome 71.

https://spring-leopon.glitch.me

depyronick commented 2 years ago
import Moment from 'moment';
import MomentRange from "moment-range";

const moment = MomentRange.extendMoment(Moment);