Skip to content

yarn web starting from scratch not working #15

@dariush7272

Description

@dariush7272

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions