PostHog / posthog-js-lite

Reimplementation of posthog-js to be as light and modular as possible.
https://posthog.com/docs/libraries
MIT License
70 stars 36 forks source link

Expo universal app's web target should not use expo-file-system #139

Closed whollacsek closed 11 months ago

whollacsek commented 11 months ago

Bug description

We are integrating Posthog in our stack and ran into this case where the web target is not handled by the Posthog react-native library properly.

How to reproduce

  1. Create a Expo universal app
  2. Build and run the web target
  3. Error

Related sub-libraries

Additional context

Thank you for your bug report – we love squashing them!

whollacsek commented 11 months ago

Re-exporting through platform specific extensions https://docs.expo.dev/router/advanced/platform-specific-modules/#platform-specific-extensions seem to work, but it should be handled automatically by the lib.

marandaneto commented 11 months ago

Related to https://github.com/PostHog/posthog-js-lite/issues/18 as well.

marandaneto commented 11 months ago

Closing in favor of https://github.com/PostHog/posthog-js-lite/issues/140