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 - troubleshooting with import of react-datasheet #19

Closed
fzoozai opened this issue May 29, 2017 · 3 comments

Comments

@fzoozai
Copy link

fzoozai commented May 29, 2017

Hi,

I just tried to integrate the react-datasheet component into my project where I faced some issues with regard to rendering the component. What could be the reason for that? I saw the last commit in the react-datasheet project was about 23 hours ago. I also followed the given example step by step from the basic usage section. I appreciate any help.

fzoozai

@nadbm
Copy link
Owner

nadbm commented May 29, 2017

hey @fzoozai, I'll need more details as to your issue. Is this an issue introduced in the new version?
What's the react version you're using and what's your build process.

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

@fzoozai
Copy link
Author

fzoozai commented May 29, 2017

@nadbm
my current react version is "react": "^0.14.3"

While trying to figure out how to solve my problem I checked whether I get the error by only including the data-sheet lib into my project like:

datasheet-issue

As expected I got:
screen shot 2017-05-29 at 22 36 28

Then I removed import ReactDataSheet from 'react-datasheet'; and got rid of the error message and the Hello World Message shown.
That's why I thought the reason for that could have something to do with the last commit within the data-sheet project.

@nadbm
Copy link
Owner

nadbm commented May 29, 2017

@fzoozai
The project uses PureComponent which was introduced in react 15.3.0 , so please update your react dependency and it should work fine. In the meantime, I'll change the dependency so that npm warns other users.

@nadbm nadbm closed this as completed May 29, 2017
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

2 participants