Cryptic error messages

Topics: General
Oct 6, 2012 at 12:44 PM
Edited Oct 6, 2012 at 12:45 PM

I'm getting these error messages once in a while:

Unable to get value of the property 'valueMembers': object is null or undefined [path to my .ts file]

Internal error: Unable to get value of the property 'getMemberTypeName': object is null or undefined [path to my .ts file]

 So far I've always managed to get rid of them by eliminating random type mismatches, etc. but they are not very helpful in this process as they do not indicate on what line the error occurs.

Oct 6, 2012 at 7:32 PM
Edited Oct 6, 2012 at 7:33 PM

These errors typically come from the compiler itself throwing an exception.  If you're able to issolate what you did that caused the compiler to blow up it would be helpful to file a bug with those details.

Oct 6, 2012 at 11:17 PM
Edited Oct 6, 2012 at 11:18 PM

Here's code to reproduce this error:

module M {
	export class A {
		static fn2 = (function() {
			return A.fn1();
		})();
	}
}

Note that "fn1" do not exists.

Coordinator
Oct 8, 2012 at 4:26 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.