【问题标题】:Table render error in react components 6.0.1反应组件6.0.1中的表渲染错误
【发布时间】:2018-11-07 19:59:03
【问题描述】:

我正在努力将我们的 @gooddata/react-components 包从版本 5.3.1 更新到版本 6.0.1。我有许多工作正常的表格见解,但现在其中一些无法呈现此错误:

Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Check the render method of 'BubbleHoverTrigger'.

我传递了与 5.3.1 相同的 props,那么为什么我的见解现在无法加载?

【问题讨论】:

    标签: gooddata


    【解决方案1】:

    我遇到了同样的错误,并通过从我之前使用的 React 15 升级到 React 16 来修复它。 @gooddata/react-components 从 6.0.0 版本开始使用新的 React。

    【讨论】:

      【解决方案2】:

      感谢斯图尔特的报告。

      我们会进行调查。您能否告诉我们哪个组件出现故障以及您发送的是什么类型的道具?是保存<Visualization /> 还是 .这似乎是我们这边缺少的测试。我们的自动化测试通常会捕捉到这些。

      【讨论】:

      • 嗨,汤姆。我们正在使用 React-Dom 以编程方式创建 Table 组件,遵循此处的文档:sdk.gooddata.com/gooddata-ui/docs/table_component.html 不幸的是,cmets 中没有足够的空间来发布整个道具。还有其他方法可以提供给您吗?
      【解决方案3】:

      Stewart,如果 cmets 中没有空间,您绝对可以通过在 GitHub 存储库上打开问题来提供它:https://github.com/gooddata/gooddata-react-components

      【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-02-06
      • 2017-04-26
      • 2021-06-04
      • 1970-01-01
      • 2019-12-25
      • 2020-07-31
      • 1970-01-01
      • 2020-12-09
      相关资源
      最近更新 更多