2017-02-21 44 views
2

我的程序剛剛通過命令react-native run-android啓動後出現一個錯誤。當我關閉遠程調試時出現錯誤。通過調試器,所有工作都正確。在沒有調試的情況下啓動時出現React Native錯誤

Objects are not valid as a React child (found: object with keys {$$typeof, type, key, ref, props, _owner, _store}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of `View`. 
traverseAllChildrenImpl 
    traverseAllChildren.js:183 
traverseAllChildrenImpl 
    traverseAllChildren.js:102 
traverseAllChildren 
    traverseAllChildren.js:218 
instantiateChildren 
    ReactChildReconciler.js:86 
_reconcilerInstantiateChildren 
    ReactMultiChild.js:179 
mountChildren 
    ReactMultiChild.js:249 
initializeChildren 
    ReactNativeBaseComponent.js:74 
mountComponent 
    ReactNativeBaseComponent.js:211 
mountComponent 
    ReactReconciler.js:61 
performInitialMount 
    ReactCompositeComponent.js:495 
mountComponent 
    ReactCompositeComponent.js:346 
mountComponent 
    ReactReconciler.js:61 
performInitialMount 
    ReactCompositeComponent.js:495 
mountComponent 
    ReactCompositeComponent.js:346 
mountComponent 
    ReactReconciler.js:61 
performInitialMount 
    ReactCompositeComponent.js:495 
mountComponent 
    ReactCompositeComponent.js:346 
mountComponent 
    ReactReconciler.js:61 
mountComponentIntoNode 
    ReactNativeMount.js:54 
perform 
    Transaction.js:149 
batchedMountComponentIntoNode 
    ReactNativeMount.js:77 
perform 
    Transaction.js:149 
batchedUpdates 
    ReactDefaultBatchingStrategy.js:65 
batchedUpdates 
    ReactUpdates.js:111 
renderComponent 
    ReactNativeMount.js:141 
render 
    ReactNative.js:31 
renderApplication 
    renderApplication.js:33 
run 
    AppRegistry.js:76 
runApplication 
    AppRegistry.js:105 
__callFunction 
    MessageQueue.js:236 
<unknown> 
    MessageQueue.js:108 
guard 
    MessageQueue.js:46 
callFunctionReturnFlushedQueue 
    MessageQueue.js:107 

版本的庫

「反應-DOM」: 「15.3.2〜」, 「反應原生」: 「^ 0.39.2」,

回答

0

在我的情況與之反應我們本土的拖累剛剛出現在Android周這個神祕的錯誤沒有建立你描述

罪魁禍首是一個

附加調試器

import 'core-js'

我們的根組件上,似乎填充工具被搞亂事情了

只需卸下進口線和試試看的package.json

"react-native": "0.44.2", 
    "react": "16.0.0-alpha.6", 

相關部分

相關問題