JavaScript
JavaScript value is not a constructor
JavaScript tried to instantiate a value with new, but that value is not constructable.
JavaScript
JavaScript tried to instantiate a value with new, but that value is not constructable.
Observed message
TypeError: x is not a constructor
Why it happens
How to fix it
Official reference
MDN: TypeError: x is not a constructorRelated errors
Explore more