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
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:
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: