-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
Tsc crash when mixing fp-ts/lib & fp-ts/es6 #860
Comments
I think i may have found a work-around, by setting a path in the tsconfig...
I'll see how it goes with this and report back. |
So, i can confirm this fixes all the crashes i had when mixing io-ts or fp-ts-rxjs with fp-ts/es6 modules. Maybe it's something that could be added to the caveats of the es6 module usage in case anyone hits the problem. Oh, and on the issue of es6 caveats, regarding jest, you need to add the follow jest config...
|
@jollytoad Thanks for your This in fact, fixes much more than the tsc crashing that you experienced. In my app which uses webpack to bundle, it also fixes inconsistencies which otherwise end up in the bundle! For example, if I have a project that uses Ouch! I'm importing from Much better! Similar with io-ts v2. Before: After: Also much better! This says to me that something is somewhere wrong with the es6 bundling in the Your work-around works well enough for me though ;-) |
Thanks a ton for this, was pulling my hair out trying to get this to work with jest! Edit: It actually didn't work for me... |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
If I import a module from fp-ts/es6 and also another module that indirectly imports the same module but from fp-ts/lib, the tsc compiler goes crazy and eventually crashes with a heap allocation failure (often after several minutes).
I've found this when using both io-ts and fp-ts-rxjs.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://codesandbox.io/ or similar.
What is the expected behavior?
not to crash!
Which versions of fp-ts, and which browser and OS are affected by this issue? Did this work in previous versions of fp-ts?
fp-ts: 1.17.3
fp-ts-rxjs: 0.5.1
io-ts: 1.8.5
The text was updated successfully, but these errors were encountered: