material-datetime-picker: Unexpected token import

Hi,

When I try to use your library with SystemJS by importing it like so:

import MaterialDatePicker from 'material-datetime-picker';

or

import MaterialDateTimePicker from 'material-datetime-picker';

I got this error:

Error: (SystemJS) SyntaxError: Unexpected token import

Do you have any idea about where this could come from? Because after looking at the code, I think the README is pointing to the wrong component.

Thanks for your time,

Raphaƫl

Environment

Browser

  • Chrome 51 (Windows, Mac)

Library

  • v1.0.1 (via jspm => npm)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 17 (8 by maintainers)

Most upvoted comments

@orwldn can you share your .babelrc? I think by default babel will not compile anything in node_modules.