Skip to content
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

Expo sdk 48 issue TypeError: undefined is not an object (evaluating ‘segments[0][1]’) #133

Open
TankPOOJA opened this issue May 1, 2023 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@TankPOOJA
Copy link

TankPOOJA commented May 1, 2023

IMG_8853

IMG_8854

I updated expo sdk, after that app crashed with this error, any solution for this issue.
"expo": "^48.0.0",
"react-native": "^0.71.7",
"react-native-wagmi-charts": "^2.3.0",
"react-native-svg": "13.4.0",
"react-native-reanimated": "^2.14.4",
"react-native-gesture-handler": "^2.5.0",

@TankPOOJA TankPOOJA changed the title Expo sdd 48 issue Expo sdk 48 issue May 1, 2023
@TankPOOJA
Copy link
Author

any solution?

@TankPOOJA TankPOOJA changed the title Expo sdk 48 issue Expo sdk 48 issue TypeError: undefined is not an object (evaluating ‘segments[0][1]’) May 4, 2023
@arancauchi
Copy link
Collaborator

Thanks for the issue @TankPOOJA, is there any way your could create a basic reproduction repro for this and send it over?
I can't seem to replicate this issue.

@JiriHoffmann
Copy link

Ran into the same issue. I believe the root cause of it is when LineChart.Provider is provided with an empty array for the data prop.

An empty string is passed to parse from react-native-redash causing it to error out.

const parsedPath = React.useMemo(() => parse(path), [path]);

@gerryfletch
Copy link

Yeah, empty data prop was the cause for me. Thanks @JiriHoffmann

@honeybadger26
Copy link
Collaborator

Hi @TankPOOJA. Were you able to resolve this issue by setting a non-empty data prop?

@honeybadger26 honeybadger26 added the help wanted Extra attention is needed label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants