Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Config babel.config to extend classes #567

Open
Sudarshan-Jagadale opened this issue Mar 2, 2021 · 0 comments
Open

How to Config babel.config to extend classes #567

Sudarshan-Jagadale opened this issue Mar 2, 2021 · 0 comments

Comments

@Sudarshan-Jagadale
Copy link

Sudarshan-Jagadale commented Mar 2, 2021

I am building a react-component.
I am using some Es6 class like
class MyClass extends MainClass { // ... } let instance = new MyClass()
Code is complied successfully
but when i run it.
It throws an error Uncaught TypeError: Class constructor MainClass cannot be invoked without 'new'
I am using "webpack": "4.43.0", "npm": "4.43.0", node:14.4.0 and nwb : 0.25.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant