analytics-react-native: Android build broken using 2.1.1-beta

When trying to run the latest preview version 2.1.1-beta, I get the following error when running the application:

Error: The package 'sovran-react-native' doesn't seem to be linked. Make sure: 

- You rebuilt the app after installing the package
- You are not using Expo managed workflow
  • analytics-react-native version: 2.1.1-beta
  • React Native version: 0.67.1

Steps to reproduce

Add 2.1.1-beta to your RN project’s package.json and run Android.

Expected behavior

Latest preview can run without issues on Android.

Actual behavior

Error: The package 'sovran-react-native' doesn't seem to be linked. Make sure: 

- You rebuilt the app after installing the package
- You are not using Expo managed workflow

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 23 (11 by maintainers)

Most upvoted comments

+1 I’m still getting the same issue when I run my tests

    The package 'sovran-react-native' doesn't seem to be linked. Make sure: 

anyone was able to solve this issue?

@AlexanderEggers thanks for letting me know. I’ll prioritize expo in the next sprint and let you know as soon as I can.

Also facing this issue with jest

Test suite failed to run

    The package 'sovran-react-native' doesn't seem to be linked.

> 5 | import { AnalyticsProvider } from '@segment/analytics-react-native';
    | ^

@vileikis @AlexanderEggers i’m pretty certain we will have to create a config plugin since the new state management system we added to the beta relies pretty heavily on native modules. I’ll get to it as soon as I can but in the meantime feel free to take a closer look yourself and let me know your thoughts.

Still facing this issue on 0.4.4 without Expo

I am also facing same issue when running jest tests. Appreciate any help or references. Thanks!

When I execute expo start it uses the expo client in the ios or android simulator. That is the expo managed workflow.

I do not get these errors when I execute expo run:ios or expo run:android because the app is complied and then run in the ios or android simulator. That is the expo bare workflow.

So perhaps this library is not compatible with the expo client and the expo managed workflow.