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, not undefined

See original GitHub issue

Getting error this in a production environment, while local dev works without issues. Using react-dates 18.2.0 18.2.1

Uncaught TypeError: Super expression must either be null or a function, not undefined
    at withStyles.js:44
    at withStyles.js:44
    at withStyles.js:158
    at Object.<anonymous> (CalendarDay.js:276)
    at o (bootstrap:78)
    at Object.<anonymous> (index.js:207)
    at o (bootstrap:78)
    at Object.<anonymous> (index.js:2)
    at o (bootstrap:78)
    at Object.<anonymous> (sn.hd.product.js:53)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
Dodie324commented, Nov 7, 2018

We’re also experiencing this error in our application code base.

5reactions
danjumamilhauscommented, Nov 7, 2018

So, I seem to have solved this in our case at least.

In our production webpack task, we are using the uglify-webpackjs-plugin.

Adding the lines:

uglifyOptions: {
  keep_fnames: true
},

keep this error from happening in that environment.

Possibly some food for thought on why this issue is happening in the future.

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
This is all about reactjs giving error Uncaught TypeError: Super expression must either be null or a function, not undefined. Reference :- https ......
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 >
TypeError: Super expression must either be null or a function ...
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 >

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