The new operator is applied to an identifier, but the identifier does not correspond to either a constructor function or a class constructor.
To correct this error
-
Make sure that the new operator is applied to a constructor function or a class constructor.
See Also
Concepts
Creating Your Own Objects with Constructor Functions
Creating Your Own Classes