question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Super expression must either be null or a function, not undefined

See original GitHub issue

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:

"@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:closed
  • Created 5 years ago
  • Comments:19 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
eltorocommented, Aug 7, 2018

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'

1reaction
andrew-oko-odioncommented, Oct 23, 2018

Any progress on this issue?

It is still not working on React

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found