-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
A tuple type element list cannot be empty , apollo-utilities error #4501
Comments
Although a zero-argument call to `mergeDeep` was always pretty pointless, it seemed worth handling that case for the sake of completeness. Well, apparently empty tuple types are forbidden by section 3.8.5 of the TypeScript spec, so (some versions of) the compiler complain about the `[]` in the `T extends []` case of `TupleToIntersection`: https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#385-tuple-type-literals Since we never really needed this case in the first place, the easy solution is to remove it. Note that the final cases in `TupleToIntersection` continue to cover the zero-argument case, for whatever it may be worth: T extends (infer U)[] ? U : any Should fix #4501.
Out of curiosity, what version of the |
Although a zero-argument call to `mergeDeep` was always pretty pointless, it seemed worth handling that case for the sake of completeness. Well, apparently empty tuple types are forbidden by section 3.8.5 of the TypeScript spec, so (some versions of) the compiler complain about the `[]` in the `T extends []` case of `TupleToIntersection`: https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#385-tuple-type-literals Since we never really needed this case in the first place, the easy solution is to remove it. Note that the final cases in `TupleToIntersection` continue to cover the zero-argument case, for whatever it may be worth: T extends (infer U)[] ? U : any Should fix #4501.
Do you have the ability to update to |
You might also try updating the Angular CLI, since they updated to TypeScript 3.0.1 in version 7.0.0: angular/angular-cli@88804b6 |
Hello Benjamn, I got fixed by upgrading the below. Typescript upgraded to 3.1.1 and angular-compiler-cli upgraded to 7.2.7 Thanks for the help |
@chennas Awesome, I'm very glad to hear you had the option to upgrade, and that it solved the problem! |
Hello Team
We are getting the build issue in Jenkins, please see the screen shot below.
We are using the following apollo utilities as shown below.

The text was updated successfully, but these errors were encountered: