You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 15, 2025. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: