Every time I attempt to create instances of MyClass()
, an error appears.
s = new MyClass();
> TypeError: 'undefined' is not a function (evaluating '_class.apply(this, arguments)')
This is the Class in question:
class MyClass
constructor: (@value = 'defaultValue')
….
Can anyone figure out what is triggering this error?