-
Notifications
You must be signed in to change notification settings - Fork 2k
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
TypeError: Super expression must either be null or a function, not undefined #991
Comments
Hi! Hm, where are you actually using the Dashboard component? Can’t see in the example 🤔 |
Sorry, I left that out. Here is a brief version of my render:
|
To be clear, Uppy was working with 0.25.6 and then suddenly broke on a new build. I then upgraded to 0.26.0 and the problem still exists. |
Found my mistake: For some reason this didn't work for me: |
After doing an npm install the problem is back. But I found a fix. I reverted Preact from 8.3.0 to 8.2.9 in package-lock.json and did an Wondering if anybody else has had this problem and how they fixed 'npm install'. |
Did a clean install — works for me. But I can also spot the upgraded Preact in package-lock.json, I wonder how when we Also using:
What error are you getting when trying to use the above? And what bundler are you using? |
preact 9.3.0 changed the path to the ES modules file inside the package (preactjs/preact#1166). Are you using webpack with a caching plugin maybe? That could explain the intermittent errors. |
Seems related: preactjs/preact#686 (comment) |
Any progress on this issue? It is still not working on React |
I haven't been able to reproduce it :/ does it also happen for you in a new create-react-app or only upgrading an existing one? |
No i just checked, creating a fresh create-react-app with |
@eltoro FYI, I had the same issue on ejected create-react-app with @uppy/react 2.9.0. Tried also 2.6.0, 2.7.3, 2.8.0 without success. Experiments with uppy modules did narrow the issue down to The solution was to edit webpack config and apply CRA fix facebook/create-react-app#5258 to re-enable Kudos to @arqex for for pointing me in the right direction in his post on |
@iki I wonder if there’s anything we can do, besides mentioning this in docs somewhere? |
@arturi thanks for caring, imo there's nothing needed. This was just a temporary create-react-app issue and will fade out. Also this fix can be googled quickly now. |
@GoudekettingRM you are not initializing Uppy correctly and I also can not reproduce this error. Here is a codesandbox with correct initialization and no errors: https://codesandbox.io/s/kind-kare-vjzsd?file=/src/App.js |
@Murderlon I copied your codepen, same result. Same TS error, same console error. |
@GoudekettingRM you are running an outdated version of Uppy. Your options:
|
I get this error:
TypeError: Super expression must either be null or a function, not undefined
_inherits
node_modules/@uppy/dashboard/lib/ActionBrowseTagline.js:5
I had Uppy working fine and then it broke when some package upgraded (not sure what changed). I was using 0.25.6 when it happened. I tried upgrading to 0.26.0 and it didn't help. Here is what I'm currently using:
Any ideas what is wrong?
The text was updated successfully, but these errors were encountered: