Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with es6 import #252

Open
trading-peter opened this issue Dec 12, 2018 · 1 comment
Open

Problem with es6 import #252

trading-peter opened this issue Dec 12, 2018 · 1 comment

Comments

@trading-peter
Copy link

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
Copy link

import Moment from 'moment';
import MomentRange from "moment-range";

const moment = MomentRange.extendMoment(Moment);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants