lwansbrough / react-native-markdown

Markdown component for React Native
MIT License
277 stars 80 forks source link

undefined is not a function (evaluating '_.merge(styles, this.props.style)') #2

Open 134564 opened 9 years ago

134564 commented 9 years ago

RCTJSLog> "Error: stack: Markdown_componentWillMount index.ios.bundle:38986 mountComponent index.ios.bundle:16092 ReactCompositeComponent_mountComponent index.ios.bundle:4909 mountComponent index.ios.bundle:4978 mountChildren index.ios.bundle:19656 initializeChildren index.ios.bundle:17969 mountComponent index.ios.bundle:18123 mountComponent index.ios.bundle:4978 mountComponent index.ios.bundle:16110 ReactCompositeComponent_mountComponent index.ios.bundle:4909 mountComponent index.ios.bundle:4978 mountChildren index.ios.bundle:19656 initializeChildren index.ios.bundle:17969 mountComponent index.ios.bundle:18123 mountComponent index.ios.bundle:4978 mountComponent index.ios.bundle:16110 ReactCompositeComponent_mountComponent index.ios.bundle:4909 mountComponent index.ios.bundle:4978 mountComponent index.ios.bundle:16110 ReactCompositeComponent_mountComponent index.ios.bundle:4909 mountComponent index.ios.bundle:4978 mountChildren index.ios.bundle:19656 initializeChildren index.ios.bundle:17969 mountComponent index.ios.bundle:18123 mountComponent index.ios.bundle:4978 mountComponent index.ios.bundle:16110 ReactCompositeComponent_mountComponent index.ios.bundle:4909 mountComponent index.ios.bundle:4978 _mountChildByNameAtIndex index.ios.bundle:19864 _updateChildren index.ios.bundle:19770 updateChildren index.ios.bundle:19715 receiveComponent index.ios.bundle:18074 receiveComponent index.ios.bundle:5037 _updateRenderedComponent index.ios.bundle:16599 _performComponentUpdate index.ios.bundle:16578 updateComponent index.ios.bundle:16498 ReactCompositeComponent_updateComponent index.ios.bundle:4909 receiveComponent index.ios.bundle:16362 receiveComponent index.ios.bundle:5037 _updateRenderedComponent index.ios.bundle:16599 _performComponentUpdate index.ios.bundle:16578 updateComponent index.ios.bundle:16498 ReactCompositeComponent_updateComponent index.ios.bundle:4909 receiveComponent index.ios.bundle:16362 receiveComponent index.ios.bundle:5037 updateChildren index.ios.bundle:19976 _updateChildren index.ios.bundle:19741 updateChildren index.ios.bundle:19715 receiveComponent index.ios.bundle:18074 receiveComponent index.ios.bundle:5037 _updateRenderedComponent index.ios.bundle:16599 _performComponentUpdate index.ios.bundle:16578 updateComponent index.ios.bundle:16498 ReactCompositeComponent_updateComponent index.ios.bundle:4909 receiveComponent index.ios.bundle:16362 receiveComponent index.ios.bundle:5037 _updateRenderedComponent index.ios.bundle:16599 _performComponentUpdate index.ios.bundle:16578 updateComponent index.ios.bundle:16498 ReactCompositeComponent_updateComponent index.ios.bundle:4909 performUpdateIfNecessary index.ios.bundle:16395 performUpdateIfNecessary index.ios.bundle:5055 runBatchedUpdates index.ios.bundle:4614 perform index.ios.bundle:6041 perform index.ios.bundle:6041 perform index.ios.bundle:4558 flushBatchedUpdates index.ios.bundle:4638 ReactUpdates_flushBatchedUpdates index.ios.bundle:4909 closeAll index.ios.bundle:6114 perform index.ios.bundle:6055 batchedUpdates index.ios.bundle:13583 enqueueUpdate index.ios.bundle:4678 enqueueUpdate index.ios.bundle:4113 enqueueSetState index.ios.bundle:4291 setState index.ios.bundle:4020

index.ios.bundle:24146 index.ios.bundle:24082 _invokeCallback index.ios.bundle:7437 applyWithGuard index.ios.bundle:877 guardReturn index.ios.bundle:7268 invokeCallbackAndReturnFlushedQueue index.ios.bundle:7450 URL: http://localhost:8081/index.ios.bundle line: 38986 message: undefined is not a function (evaluating '_.merge(styles, this.props.style)')" 2015-04-08 19:53:34.290 testapp[26872:17479744] **\* Assertion failure in -[RCTNavigator reactBridgeDidFinishTransaction], /Volumes/Untitled/jgyun/wedo/react-native/testapp/node_modules/react-native/React/Views/RCTNavigator.m:500
lwansbrough commented 9 years ago

Can you show me the code that creates the markdown?

lwansbrough commented 9 years ago

Cannot reproduce.

cnberg commented 9 years ago

I was using the example your provide, after your installation guide, and I also restart the npm server, got the same error.

lwansbrough commented 9 years ago

@cnberg Thanks, can you confirm what version of this module you're running?

lwansbrough commented 9 years ago

@cnberg The reason why I ask what version you're using is because _.merge(styles, this.props.style) doesn't exist in the code base anymore.