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.

Error: Super expression must either be null or a function

See original GitHub issue

I’m having the same issue someone else reported here: Stackoverflow

This is in a Next.js project and there are no problems when running in local development. This only happens when the production build is created so I’m not sure if something in the minification process is causing the problem?

Downgrading to 4.0.1 appears to resolve the issue.

Dependencies:

    "react": "^16.9.0",
    "react-confetti": "4.0.1",
    "react-dom": "^16.10.2",

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:10
  • Comments:21 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
rkuykendallcommented, Feb 13, 2020

@alampros Are you even here or do we need to fork this?

3reactions
cjmylescommented, Nov 17, 2019

@alampros any luck with this?

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 reasons might be: typo in Class...
Read more >
React Errors : Super expression must either be null or a function
The first culprit is usually that you have forgotten to export the component that you are trying to use and hence React finds...
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 >
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 >
Uncaught TypeError: Super expression must either be null or ...
I'm getting this error when using the foundation-explicit-pieces.js and customize it to my needs. But ONLY when i use foundation build.
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