Section 5 Lecture 64: Issue with Sparklines 1.6.0
jamesalmeida opened this issue · comments
I keep getting this error:
Uncaught TypeError: Cannot read property 'string' of undefined
I had Sparklines 1.6.0 installed. Tried uninstalling and going back to 1.4.2 and still have same issue.
The error goes away as soon as I remove this line from my code:
import { Sparklines, SparklinesLine } from 'react-sparklines';
Anyone know what's going on here?
I got the same here.
And this is not the react-sparlines version error what this section alerts.
I ended up just typing npm install react-sparklines --save
in the terminal and now the error went away. I guess the most recent version works fine now contrary to the note in the course telling us to install the previous 1.6.0 version?