react-native-web-boilerplate
react-native-web-boilerplate copied to clipboard
yarn web starting from scratch not working
Starting from the master branch, yarn + yarn web works, deleting the yarn.lock file and node_modules and running again yarn + yarn web, an error occurs as following:
ERROR in ./src/navigation.js
Module not found: Error: Can't resolve 'react-navigation' in '/Users/dariush/frameworks/react-native/ReactNativeTraining/boilerplates_buoni/react-native-web-boilerplate/src'
@ ./src/navigation.js 1:293-320
@ ./index.web.js
@ multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server webpack-dev-server/client?http://localhost:3000 webpack/hot/only-dev-server react-hot-loader/patch ./index.web.js
ERROR in ./src/index.js
Module not found: Error: Can't resolve 'react-navigation' in '/Users/dariush/frameworks/react-native/ReactNativeTraining/boilerplates_buoni/react-native-web-boilerplate/src'
@ ./src/index.js 1:1063-1090
@ ./src/navigation.js
@ ./index.web.js
@ multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server webpack-dev-server/client?http://localhost:3000 webpack/hot/only-dev-server react-hot-loader/patch ./index.web.js
ERROR in ./~/tricky-components/src/SimpleTabs.js
Module not found: Error: Can't resolve 'react-navigation' in '/Users/dariush/frameworks/react-native/ReactNativeTraining/boilerplates_buoni/react-native-web-boilerplate/node_modules/tricky-components/src'
@ ./~/tricky-components/src/SimpleTabs.js 1:365-392
@ ./~/tricky-components/src/index.js
@ ./src/index.js
@ ./src/navigation.js
@ ./index.web.js
@ multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server webpack-dev-server/client?http://localhost:3000 webpack/hot/only-dev-server react-hot-loader/patch ./index.web.js
ERROR in ./~/tricky-components/src/Drawer.js
Module not found: Error: Can't resolve 'react-navigation' in '/Users/dariush/frameworks/react-native/ReactNativeTraining/boilerplates_buoni/react-native-web-boilerplate/node_modules/tricky-components/src'
@ ./~/tricky-components/src/Drawer.js 1:361-388
@ ./~/tricky-components/src/index.js
@ ./src/index.js
@ ./src/navigation.js
@ ./index.web.js
@ multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server webpack-dev-server/client?http://localhost:3000 webpack/hot/only-dev-server react-hot-loader/patch ./index.web.js
ERROR in ./~/tricky-components/src/StacksInTabs.js
Module not found: Error: Can't resolve 'react-navigation' in '/Users/dariush/frameworks/react-native/ReactNativeTraining/boilerplates_buoni/react-native-web-boilerplate/node_modules/tricky-components/src'
@ ./~/tricky-components/src/StacksInTabs.js 1:367-394
@ ./~/tricky-components/src/index.js
@ ./src/index.js
@ ./src/navigation.js
@ ./index.web.js
@ multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server webpack-dev-server/client?http://localhost:3000 webpack/hot/only-dev-server react-hot-loader/patch ./index.web.js
ERROR in ./~/tricky-components/src/SimpleStack.js
Module not found: Error: Can't resolve 'react-navigation' in '/Users/dariush/frameworks/react-native/ReactNativeTraining/boilerplates_buoni/react-native-web-boilerplate/node_modules/tricky-components/src'
@ ./~/tricky-components/src/SimpleStack.js 1:366-393
@ ./~/tricky-components/src/index.js
@ ./src/index.js
@ ./src/navigation.js
@ ./index.web.js
@ multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server webpack-dev-server/client?http://localhost:3000 webpack/hot/only-dev-server react-hot-loader/patch ./index.web.js
the new yarn.lock file differs a lot from the original one, the expected result (if I'm right) should be having the ability to build the project with no issues
Facing the same problem