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.

Uncaught TypeError: Super expression must either be null or a function

See original GitHub issue

hey guys!

So, I spend a couple of days building a landing page with react-parallax, and everything went fine, but when I deployed the bundle strange Error happened:

Uncaught TypeError: Super expression must either be null or a function
    at 5.9b604282.chunk.js:1
    at 5.9b604282.chunk.js:1
    at Module.<anonymous> (5.9b604282.chunk.js:1)
    at r (5.9b604282.chunk.js:1)
    at e.exports (5.9b604282.chunk.js:1)
    at Object.<anonymous> (5.9b604282.chunk.js:1)
    at s (localhost/:1)
    at Module.1141 (main.02f04cab.chunk.js:1)
    at s (localhost/:1)
    at Object.432 (main.02f04cab.chunk.js:1)

I don’t know what causes the error, but I double checked everything – and it is certainly something with react-parallax lib, and doesn’t really depends on OS – same thing is happening on my prod server (Ubuntu) and local machine (Mac OS) when I serve the bundle. In development mode everything is ok.

The error happens when I use the basic example.

How to debug this further?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sorokinvjcommented, Jan 13, 2020

Thanks!!! Works perfectly now and mobile is awesome!

1reaction
calvinsienatracommented, Jan 3, 2020

Updated to 3.0.3 and it seems to be working perfectly. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Super expression must either be null ...
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 ...
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 >
React Errors : Super expression must either be null or a ...
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 >
Uncaught TypeError: Super expression must either be null ...
After making production build i am getting this error in console and application is not getting loaded. My Environment: OS: Linux/Ubuntu ...
Read more >
TypeError: Super expression must either be null or a ...
All the workarounds I'm seeing are to change the class you are extending, or upgrade a library. Can someone explain the underlying issue...
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