I’m trying to import a react component from a beta framework called plygrid. I install this framework with:
$ npm install plygrid --save
I then try to import one of its react modules by:
import button from 'plygrid/react_components/button.jsx';
When I do this I get an error:
Uncaught SyntaxError: Unexpected token import
However, if I simply copy that component’s code into the
/imports directory, without change the code whatsoever, it works fine. This seems like a bug to me, if the same code works in the imports directory, shouldn’t it work from an npm package?