-
Notifications
You must be signed in to change notification settings - Fork 260
more Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. #209
Comments
What do you have for versions of dependencies? What does |
I'm having the same problem, but with using Bar.js. My npm list looks like:
package.json looks like:
Any help appreciated, thanks. |
This could be a conflict with the more recent version of react-native you have (0.50.1) and the older version of react-native-svg (5.4.2). I just published a new version of this library with the most updated/working dependencies. So, if you do a
(or equivalent), and you do this:
, you should now see something like:
Does that help? |
Hi. I've done "npm list react-native-pathjs-charts react-native react react-native-svg" ├── [email protected] The issue remains. I see that react-native-pathjs-charts is @ 0.0.31 and yours @ 32 and i don't know why. Any thing else i should do? |
you need to remove the conflict you have for react-native-svg between version 5.4.2 and 6.0.0. In your package.json, do you have a direct reference to react-native-svg in dependencies? If so, does it have to be version 6.0.0? My advice is to edit your package.json based on the versions of dependencies I'm using ([email protected] (which relies on [email protected]), [email protected] [email protected]) and then clean everything out with |
Hi. Just did that. package.json like this: { npm list: ├── [email protected] I'm getting the same error. :( |
Hmm...even after duplicating your package.json with an app I have that displays displays the pie chart from the example app, I wasn't able to reproduce the same error. So, there must be something else going on (likely unrelated to this library). Since you have a variety of other charting libraries you are using, what happens as you start removing some of them and get down to just this chart library? Is there some combination of things that produces the error? |
Reinstalled everything. Android platform 25 didn't had the license accepted. Thanks! |
Encountering the error on the subject when using the default data provided for demo of pie chart.
Check the render method of
G
.This error is located at:
in G (at Pie.js:143) ....
The text was updated successfully, but these errors were encountered: