-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Object prototype may only be an Object or null: undefined #40
Comments
I wasn't able to duplicate this in a project using TypeScript 2.7.2. Can you provide a code sample that causes this error? |
I am seeing this error as well in Typescript 2.7.2. It appears when I run tests with the following command:
Here is a (hopefully useful) snippet of the stack trace:
Here is the class from which the error is thrown:
I copied the ExtendableError internals into my own class, BaseError, and extended that instead. This gives no error.
|
TL;DR: Turn on Take at a look at this post.
Hope it helps. |
Hello,
i'm getting this error. Typescript 2.7.2
TypeError: Object prototype may only be an Object or null: undefined
at setPrototypeOf (native)
[Node] at __extends
Any idea why?
The text was updated successfully, but these errors were encountered: