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.

_createSuper is not defined

See original GitHub issue

Bug Report

Current Behavior if you define two class in one js file, will error Uncaught ReferenceError: _createSuper is not defined

Input Code

  • REPL or Repo link if applicable:
class A extends React.Component {
}
export default class B extends React.Component {
}

Expected behavior/code update dependencies

Environment

Possible Solution

Additional context/Screenshots image-20200326141901583

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
nicolo-ribaudocommented, Apr 2, 2020

Can you check what npx nls why @babel/helpers prints?

Also, those helpers aren’t called from babelHelpers.createSuper probably because Babel doesn’t know which helpers it can safely use from the babelHelpers object (it must assume that it is ^7.0.0). You can pass the "helperVersion": "^7.9.0" option to the plugin if you want to tell Babel that you are using an up-to-date babelHelpers object.

1reaction
nicolo-ribaudocommented, Mar 26, 2020

@ulrichb This bug should only happen when using @babel/core <7.5.5, but CRA uses 7.9.0.

Could you run npx nls why @babel/core and post the output?

Read more comments on GitHub >

github_iconTop Results From Across the Web

"db.createUser is not a function" and "password can't be empty"
In 2.6, MongoDB introduced a new model for user credentials and privileges, as described in Security Introduction. To use db.addUser() on ...
Read more >
Can't create admin user: 'createUser' of object test is not a ...
I installed MongoDB via the current Debian buster package. I tried to create an admin user as in the MongoDB documentation. I typed:...
Read more >
Documentation: 15: createuser - PostgreSQL
createuser is a wrapper around the SQL command CREATE ROLE . There is no effective difference between creating users via this utility and...
Read more >
db.createUser() not recognized #542 - GitHub
The db.createUser() function is not recognized by RoboMongo. addUser has been depricated since version 2.6 and replaced by createUser.
Read more >
db.createUser() - MongoDB shell method - w3resource
The db.createUser() method is used to creates a new user. ... Creates a new user for the database where the method runs. db.createUser()...
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