react-toggle icon indicating copy to clipboard operation
react-toggle copied to clipboard

Super expression must either be null or a function, not undefined

Open diihfilipe opened this issue 6 years ago • 5 comments

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 }

diihfilipe avatar Aug 22 '17 14:08 diihfilipe

+1

fabianfalonhwd avatar Aug 22 '17 19:08 fabianfalonhwd

Hi there,

Did you check this: https://stackoverflow.com/questions/30116430/reactjs-giving-error-uncaught-typeerror-super-expression-must-either-be-null-or

lfbn avatar Oct 07 '17 11:10 lfbn

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

Francesco-Rizzi avatar Nov 21 '17 22:11 Francesco-Rizzi

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"

mont8593 avatar Mar 06 '19 11:03 mont8593

error is still here

yyynnn avatar May 06 '19 20:05 yyynnn