TypeError: Super expression must either be null or a function, not undefined
See original GitHub issueI 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:
"@uppy/core": "0.26.0",
"@uppy/react": "0.26.0",
"@uppy/xhr-upload": "0.26.0",
"react": "16.4.2",
import Uppy from '@uppy/core';
import { Dashboard } from '@uppy/react/lib/Dashboard';
import XHRUpload from '@uppy/xhr-upload';
export class NoteUploader extends Component {
constructor(props) {
super(props);
const idToken = localStorage.getItem('id_token');
this.uppy = new Uppy({
autoProceed: false
}).use(XHRUpload, {
endpoint: `${process.env.REACT_APP_API_URL}/upload`,
fieldName: 'files[]',
headers: {
accept: 'application/json'
}
});
}
Any ideas what is wrong?
Issue Analytics
- State:
- Created 5 years ago
- Comments:19 (4 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Super expression must either be null or ...
This means that you want subclass something, which should be Class , but is undefined . The ...
Read more >React Errors : Super expression must either be null or a function
Have you come across this error when working with React? Uncaught TypeError: Super expression must either be null or a function, not undefined....
Read more >React Errors : Super expression must either be null or a function
Firstly, if you're certain that you're extending from the correctly named class, e.g. React.Component, not React.component or React.
Read more >TypeError: Super expression must either be null or a ... - GitHub
I got here just by googling the OP's error. In my case, the issue only appears when I run a 'release', minified build,...
Read more >Uncaught TypeError: Super expression must either be null or ...
After making production build i am getting this error in console and application is not getting loaded. My Environment: OS: Linux/Ubuntu ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Found my mistake:
import { Dashboard } from '@uppy/react/lib/Dashboard';
Should be this:import Dashboard from '@uppy/react/lib/Dashboard';
For some reason this didn’t work for me:
import { Dashboard } from '@uppy/react'
Any progress on this issue?
It is still not working on React