samhh / fp-ts-std

The missing pseudo-standard library for fp-ts.
https://samhh.github.io/fp-ts-std/
MIT License
207 stars 27 forks source link

Cannot be used in React Native project #162

Closed liambutler-lawrence closed 1 year ago

liambutler-lawrence commented 1 year ago

We use fp-ts and fp-ts-std in a shared library consumed by both node.js and React Native projects. In the node.js project, both work perfectly, but in React Native, only fp-ts works, while importing fp-ts-std causes the app to crash at launch, saying it can't find the imported file.

Has anybody else seen this issue?

samhh commented 1 year ago

Your build tool and/or runtime environment need to support conditional exports.