-
Notifications
You must be signed in to change notification settings - Fork 123
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
[type]: RangeError: Maximum call stack size exceeded at isExtendable #495
Comments
I saw similar reports (#478 , #477). @marcj Assuming this is the same issue. I saw your comment about potentially required fundamental changes in the VM: #478 (comment) We could avoid that, at least as a temporary solution. |
whats the type of ObjectTypeDefinitionJsonMetaSchema? |
export type ObjectTypeDefinitionJsonMetaSchema = {
foo: 'bar';
}; |
export type ObjectTypeDefinitionJsonMetaSchema = {
foo: string;
}; also doesn't work |
that's the type that breaks? so simple? then definitely a bug |
Yes, it's exactly the type I had, very basic. |
Need more information since this is not replicable. What are you doing with IObjectTypesJsonMetaSchemasProvider? |
You may find environment it's reproducible in at #496, that's another problem but similar code. |
I don't think #477 is related, as its a V8 OOM instead of a Stack Overflow error |
@alpharder Ok I've managed to replicate it type ObjectTypeDefinitionJsonMetaSchema = {
foo: string;
};
type IObjectTypeJsonMetaSchemasProvider = {
getObjectTypeDefinitionJsonMetaSchema(): Promise<ObjectTypeDefinitionJsonMetaSchema> | ObjectTypeDefinitionJsonMetaSchema;
};
class CmsService {
async getObjectTypeDefinitionJsonMetaSchema(): Promise<ObjectTypeDefinitionJsonMetaSchema> {
return {foo: 'bar'};
}
}
type T = CmsService extends IObjectTypeJsonMetaSchemasProvider ? true : false;
const type = typeOf<T>(); |
@alpharder fixed in aa66460 |
Problematic code:
Error:
Changing signature to this causes error to disappear:
The text was updated successfully, but these errors were encountered: