Invariant Violation error

Getting “Invariant Violation: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object” error on a fetch… out of the blue!

Can anyone help?!

Did Expo change anything in their library?

Hey @cabteix,

Can you post the stacktrace and the relevant code it is pointing to?



I have the same error for Charts.

I was using react-native charts for charts in my App.
Several days ago all was working good, but now I got such error when I’m trying to use components from react-native-chart.

I was searching for solution and tried to upgrade react-native.
After this, I started getting error ‘react-native-svg’ not found, despit of fact that this library already included in Expo.

I’m getting this error all over my already stable app… did any of the major libraries change? how do I upgrade reactive-native in Expo? as matter of fact how do I rebuild my dependencies to the latest ones?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.