Super expression must either be null or a function
See original GitHub issueI’m not sure what this error means, but my babel just updated, and now stimulus throws this error.
import { Application } from "stimulus"
import EmailSignupController from "./controllers/email_signup_controller"
const application = Application.start()
// the offending line. Commenting this out stops the error.
application.register("email_signup", EmailSignupController)
I’m using "stimulus": "^1.1.1"
and "@babel/core": "7.6.2"
. When I was on babel 7.5.5 things worked fine.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (5 by maintainers)
Top 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 ...
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 ...
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 ...
After making production build i am getting this error in console and application is not getting loaded. My Environment: OS: Linux/Ubuntu ...
Read more >Moralis VUE TypeError super expression must be either ...
Im trying to use Moralis with my vite/vue project but I always get the error on compilation. inherits.js:9 Uncaught TypeError: Super ...
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
Closing for now. Will reopen if you can trace this back to Stimulus. ✌️
Happy to try if you can share an example repo (or .zip of one).