-
Notifications
You must be signed in to change notification settings - Fork 362
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
Bug. Uncaught TypeError: Super Expression must either be null or a function #128
Comments
Seems to relate to react-grid-layout/react-draggable#472. Unknown cause at the moment. Biggest change between draggable 4.3.1 and 4.2.0 would be a devDependency upgrade. Could be causing the compile to behave differently in production mode. For now, pin react-draggable to 4.2.0. |
Try to fixate "react-draggable": "4.2.0" in your package |
@STRML , have you tried pinning react-draggable to 4.2.0 as a dependency in react-resizable? This package installs react-draggable 4.0.3, but I can see in my app's lock file that this dependency is resolving to react-draggable 4.3.1. Here's the entry from our yarn.lock file for reference, after pinning react-draggable 4.2.0 and deleting node_modules and the previous yarn.lock:
|
same issue for me too. resolved the issue based on @STRML comment above. |
Will keep this open until the underlying issue is fixed. If any of you have a stable reproduction please link it here or in react-grid-layout/react-draggable#472. |
Can confirm that fixing it to 4.2.0 solved the issue. |
Hey,
Problem Report
The package works great when running the development build on React.
It also builds correctly when I need to deploy it:
However, when I open the production built I get the following:
Which breaks my entire app.
I was able to narrow down issue to react-resizable - if I take out the package and build, everything works fine.
This link provides more insight:
https://stackoverflow.com/questions/30116430/reactjs-giving-error-uncaught-typeerror-super-expression-must-either-be-null-or
System Info
"node-sass": "^4.13.1",
"react": "^16.13.1"
"react-scripts": "2.1.5",
"react-resizable": "^1.10.1",
Reproduction
I have just started using the package and I have not done anything unusual:
https://codesandbox.io/s/react-resizable-playground-kvt8i?file=/src/index.js
The text was updated successfully, but these errors were encountered: