react-toggle
react-toggle copied to clipboard
Super expression must either be null or a function, not undefined
I have imported the modules as the docs says
import Toggle from 'react-toggle' import "react-toggle/style.css"
but i'm getting this error 'Super expression must either be null or a function, not undefined'
And my component have:
constructor(props) { super( props ) this.handleChange = this.handleChange.bind( this ) this.state = { whatever: false }
+1
Hi there,
Did you check this: https://stackoverflow.com/questions/30116430/reactjs-giving-error-uncaught-typeerror-super-expression-must-either-be-null-or
I have the same issue just importing the library (even without using it!), maybe there is something wrong with the new version (16+) of React
import Toggle from 'react-toggle';
is enough to raise that error
Same issue. Super expression must either be null or a function, not undefined in console. "react-toggle": "^4.0.2" "prop-types": "^15.7.2"
error is still here