0

我正在尝试测试反应虚拟化。我使用了download-zip文件。当我npm start在 react-virtualized-master 中运行时,它不会呈现任何具有以下错误的内容。任何人都可以帮助修复这个错误吗?

反应错误:

Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of `Application`.
    at invariant (invariant.js:44)
    at ReactCompositeComponentWrapper.instantiateReactComponent [as _instantiateReactComponent] (instantiateReactComponent.js:86)
    at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:388)
    at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:262)
    at Object.mountComponent (ReactReconciler.js:47)
    at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:397)
    at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:262)
    at Object.mountComponent (ReactReconciler.js:47)
    at mountComponentIntoNode (ReactMount.js:105)
    at ReactReconcileTransaction.perform (Transaction.js:138)
4

1 回答 1

0

我不知道“react-virtualized-master”是什么。您是在谈论 react-virtualized git 存储库的 master 分支吗?

我从您复制的错误消息中猜测是安装了错误版本的 React (< 15.3),因此无法解决PureComponent。如果您正在运行 react-virtualized repo,则不应出现这种情况,但应使用 16.0 alpha。

老实说,可能需要更多信息来帮助解决这个问题。

于 2017-03-14T14:24:00.937 回答