t4t5 / react-native-router

Awesome navigation for your React Native app.
MIT License
1.17k stars 155 forks source link

Caught error after npm install and white screen when refresh #61

Open bakso opened 9 years ago

bakso commented 9 years ago

I executed npm install, and the termial showed the error info below suddenly: When press CMD+R to refresh, the screen became a whole white view, what cause this?

[12:08:53 PM] <END>   transform (322ms)
Unable to resolve module react-timer-mixin from /Users/xhowhy/dev/project/MyV2EX/node_modules/react-native-router/node_modules/react-native/Libraries/CustomComponents/ListView/ListView.js
Unable to resolve module react-timer-mixin from /Users/xhowhy/dev/project/MyV2EX/node_modules/react-native-router/node_modules/react-native/Libraries/CustomComponents/Navigator/Navigator.js
Unable to resolve module rebound from /Users/xhowhy/dev/project/MyV2EX/node_modules/react-native-router/node_modules/react-native/Libraries/CustomComponents/Navigator/Navigator.js
Unable to resolve module react-timer-mixin from /Users/xhowhy/dev/project/MyV2EX/node_modules/react-native-router/node_modules/react-native/Libraries/Components/TextInput/TextInput.js
Unable to resolve module react-timer-mixin from /Users/xhowhy/dev/project/MyV2EX/node_modules/react-native-router/node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js
Unable to resolve module rebound from /Users/xhowhy/dev/project/MyV2EX/node_modules/react-native-router/node_modules/react-native/Libraries/ReactIOS/WarningBox.js
Unable to resolve module rebound from /Users/xhowhy/dev/project/MyV2EX/node_modules/react-native-router/node_modules/react-native/Libraries/ReactIOS/WarningBox.js
Unable to resolve module react-timer-mixin from /Users/xhowhy/dev/project/MyV2EX/node_modules/react-native-router/node_modules/react-native/Libraries/CustomComponents/ListView/ListView.js
Unable to resolve module react-timer-mixin from /Users/xhowhy/dev/project/MyV2EX/node_modules/react-native-router/node_modules/react-native/Libraries/CustomComponents/Navigator/Navigator.js
Unable to resolve module rebound from /Users/xhowhy/dev/project/MyV2EX/node_modules/react-native-router/node_modules/react-native/Libraries/CustomComponents/Navigator/Navigator.js
Unable to resolve module react-timer-mixin from /Users/xhowhy/dev/project/MyV2EX/node_modules/react-native-router/node_modules/react-native/Libraries/Components/TextInput/TextInput.js
Unable to resolve module react-timer-mixin from /Users/xhowhy/dev/project/MyV2EX/node_modules/react-native-router/node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js
bakso commented 9 years ago

When I delete the node_modules/react-native-router, it became normal. React 0.10.0, nodejs 4.0.0

MikaelCarpenter commented 9 years ago

the react-native that sits in this module is out of date, you can update it yourself in the package.json.

I actually have a fork with additional improvements that I'll be publishing to npm soon, so you can also just go ahead and use that here

bakso commented 9 years ago

@MikaelCarpenter Thank you but I still have a question, why are you so smart?