Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant