grigio / HAgnostic-News

:fire: A simple Hacker News reader which is available for the Web and as React Native app (Android / iOS)
MIT License
371 stars 46 forks source link

Failed to compile. (npm start) #2

Closed kenpeter closed 7 years ago

kenpeter commented 7 years ago

Related to this: https://codedump.io/share/JVC44fmZDwQC/1/error-in-react-tap-event-pluginsrcinjecttapeventpluginjs, I think

Failed to compile in my machine.

Error in ./~/react-native-web/dist/modules/injectResponderEventPlugin.js Module not found: 'react/lib/EventConstants' in /var/www/html/test/testme/hak_news/node_modules/react-native-web/dist/modules

@ ./~/react-native-web/dist/modules/injectResponderEventPlugin.js 1:20-55

Error in ./~/react-native-web/dist/modules/injectResponderEventPlugin.js Module not found: 'react/lib/EventPluginRegistry' in /var/www/html/test/testme/hak_news/node_modules/react-native-web/dist/modules

@ ./~/react-native-web/dist/modules/injectResponderEventPlugin.js 4:25-65

Error in ./~/react-native-web/dist/modules/injectResponderEventPlugin.js Module not found: 'react/lib/ResponderEventPlugin' in /var/www/html/test/testme/hak_news/node_modules/react-native-web/dist/modules

@ ./~/react-native-web/dist/modules/injectResponderEventPlugin.js 5:26-67

Error in ./~/react-native-web/dist/modules/injectResponderEventPlugin.js Module not found: 'react/lib/ResponderTouchHistoryStore' in /var/www/html/test/testme/hak_news/node_modules/react-native-web/dist/modules

@ ./~/react-native-web/dist/modules/injectResponderEventPlugin.js 6:32-79

Error in ./~/react-native-web/dist/apis/PanResponder/index.js Module not found: 'react/lib/TouchHistoryMath' in /var/www/html/test/testme/hak_news/node_modules/react-native-web/dist/apis/PanResponder

@ ./~/react-native-web/dist/apis/PanResponder/index.js 9:21-58

Error in ./~/react-native-web/dist/apis/UIManager/index.js Module not found: 'react/lib/CSSPropertyOperations' in /var/www/html/test/testme/hak_news/node_modules/react-native-web/dist/apis/UIManager

@ ./~/react-native-web/dist/apis/UIManager/index.js 2:27-69

grigio commented 7 years ago

maybe outdated deps? I'll look at it, thanks

grigio commented 7 years ago

@kenpeter it seems React Native has problems with old projects, I've updated the dependencies as much as possible. Try to:

git pull
rm -rfv node_modules
yarn # instead of npm
yarn run start
kenpeter commented 7 years ago

Ok, I reinstall everything with npm install xxx --save, now seems working. It is deps problem. Haven't tried yarn.

grigio commented 7 years ago

Ok, thanks. I close this for now