-
Notifications
You must be signed in to change notification settings - Fork 12.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
Out-of-memory compiling project that uses fp-ts 0.2.6+ and TS@next #16029
Comments
Thanks for opening this! |
Thanks a lot!!!! |
@sandersn Do you have any tips about how to debug this in a TypeScript application? I'm currently blocked by it :-( |
I was able to fix the issue in my example project by deduping fp-ts so there was only one version, not two. The example uses 0.2.8 and 0.2.7. However this was not easy to find, so ideally tsc would tell me the error still. |
Hello, In a first component, I have a field like this :
This component extends an abstract class where the type of
In this configuration, I can have two kinds of problems :
But if I remove one object from my array, like this :
there is no bug. I can "fix" this bug with two other ways :
I write
Hope it will helps. |
Other "solution" : Instead of declaring type in my abstract class like this :
I do :
and I declare my new type ForeignFields :
|
@gillesfabre34 are you using fp-ts as well? Or is your repro standalone? I think you also meant to have If that is correct, hopefully that is an even better workaround. |
No, I don't use fp-ts, but I had the same error message with my own webapp. I searched help on Google and I found your issue which seems to be the same than mine, but maybe not. So I thought it could help you to see another situation with the same problem. About using Array or Tuple, in fact I wanted to have an array where each element was of type Changing I hope that my bug will help you to solve yours ... |
I have a project that has no compile errors and all dependencies share the same version of fp-ts. If I try updating one of these dependencies to use a different fp-ts version, the memory issue reappears. Perhaps there are compile errors from the upgrade being masked by the memory issue. |
I can also confirm this error still occurs with TypeScript 2.4.2. |
@OliverJAsh kindly provided a small repro:
@sledorze additionally noted that the issue happens with ill-typed programs, not well-typed ones.
The text was updated successfully, but these errors were encountered: