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.

Super expression must either be null or a function

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
javancommented, Oct 11, 2019

Closing for now. Will reopen if you can trace this back to Stimulus. ✌️

1reaction
javancommented, Oct 7, 2019

Happy to try if you can share an example repo (or .zip of one).

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 ...
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 >

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