Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
diihfilipe opened this issue Aug 22, 2017 · 5 comments
Open

Comments

@diihfilipe
Copy link

diihfilipe commented Aug 22, 2017

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
}

@fabianfalonhwd
Copy link

+1

@lfbn
Copy link
Contributor

lfbn commented Oct 7, 2017

Hi there,

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

@0xFFrancesco
Copy link

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

@mont8593
Copy link

mont8593 commented Mar 6, 2019

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"

@yyynnn
Copy link

yyynnn commented May 6, 2019

error is still here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants