Error: Super expression must either be null or a function
See original GitHub issueI’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:
- Created 4 years ago
- Reactions:10
- Comments:21 (1 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 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 >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 FreeTop 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
Top GitHub Comments
@alampros Are you even here or do we need to fork this?
@alampros any luck with this?