Skip to main content

Troubleshooting

  • ERROR Invariant Violation: requireNativeComponent: "SkiaDomView" was not found in the UIManager.

    If expo is used, you need to install the version of skia/svg that corresponds to the version built into expo, otherwise the above error will occur. If you are not sure which version should be installed, you can refer to the version recommended at expo startup, e.g.

    "SkiaDomView" was not found

  • ERROR [ECharts] Component XXX is used but not imported.

    The above error indicates that the XXX component is used in the chart but has not been registered. The components used in the chart need to be registered manually in the following way.

    import { XXX } from 'echarts/components';
    echarts.use([XXX]);
  • ERROR [ECharts] Unknown series undefined

    When the above error occurs during chart restoration, it is likely that the option was passed in as an empty object during the initialization of the chart object, or that the object was passed in without a series field, as in this case chartInstance.setOption({}). When initializing, the option should be passed into the series configuration as much as possible.
  • Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.

    If only the Svg or Skia dependencies are installed, but introduced via the import { SVGRenderer, XXXChart } from '@wuba/react-native-echarts' write, the above error will occur.

    Individual import reference here