I think this is a general question about how to make a library usable with ES6's import
:
I want to use DimpleJS (a JS library for charts) in my React app.
- I ran
npm install --save dimple-js
- I added
import * from 'dimple-js'
to my React component
At this point I get a Syntax Error: Unexpected token (2:9)
which is the space after my import *
.
Why do I get this error? How should I correctly import this into my project?