Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.
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

@Sudarshan-Jagadale

Description

@Sudarshan-Jagadale

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions