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

Component.js:28 Uncaught TypeError: Super expression must either be null or a function, not undefined #78

Open
thanhthang20 opened this issue Oct 11, 2017 · 5 comments

Comments

@thanhthang20
Copy link

thanhthang20 commented Oct 11, 2017

I got this error right here -> import {CopyToClipboard} from 'react-copy-to-clipboard';

React v16

@mmemory
Copy link

mmemory commented Oct 12, 2017

You are destructuring. Try using:

import CopyToClipboard from 'react-copy-to-clipboard'

Without the curly brackets.

@SamBallantyne
Copy link

SamBallantyne commented Oct 16, 2017

I'm seeing the same issue. It's not a problem with the destructuring syntax.

@nkbt
Copy link
Owner

nkbt commented Nov 5, 2017

Any way to reproduce this? Like codepen or something?

@ssc9309
Copy link

ssc9309 commented Nov 20, 2017

I had the same issue where the superClass was undefined in
function _inherits(subClass, superClass)
I did a workaround by simply setting the superClass = null under
if (typeof superClass !== "function" && superClass !== null)

It seems to work for now...

@mikethejet
Copy link

the same error if i use: import CopyToClipboard from 'react-copy-to-clipboard';
can be some version (react) problem ?

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