Skip to content

run example error Cannot resolve module #1

@zhonshu

Description

@zhonshu

zhongshudeMacBook-Pro:react-native-web-example zhongshu$ npm install
npm WARN react-hot-api@0.4.7 requires a peer of react@>=0.11.0 || ^0.14.0-rc but none was installed.
npm WARN react-hot-loader@1.2.7 requires a peer of react@>=0.11.0 but none was installed.
npm WARN react-web@0.1.5 requires a peer of react@~0.14.0 but none was installed.
npm WARN react-web@0.1.5 requires a peer of react-dom@~0.14.0 but none was installed.
npm WARN react-native-web-example@0.0.1 No repository field.
npm WARN react-native-web-example@0.0.1 No license field.
zhongshudeMacBook-Pro:react-native-web-example zhongshu$ npm run web-dev

I run npm run web-dev errors

ERROR in ./index.ios.js
Module not found: Error: Cannot resolve module 'react/lib/ReactMount' in /Users/zhongshu/Documents/react/react-native-web-example
@ ./index.ios.js 1:346-377

ERROR in ./index.ios.js
Module not found: Error: Cannot resolve module 'react' in /Users/zhongshu/Documents/react/react-native-web-example
@ ./index.ios.js 1:387-403 76:375-391

ERROR in .//react-web/lib/react-web.js
Module not found: Error: Cannot resolve module 'react' in /Users/zhongshu/Documents/react/react-native-web-example/node_modules/react-web/lib
@ ./
/react-web/lib/react-web.js 13:13-29

ERROR in .//react-web/lib/ActivityIndicator/ActivityIndicator.web.js
Module not found: Error: Cannot resolve module 'react' in /Users/zhongshu/Documents/react/react-native-web-example/node_modules/react-web/lib/ActivityIndicator
@ ./
/react-web/lib/ActivityIndicator/ActivityIndicator.web.js 11:13-29

ERROR in .//react-web/lib/DrawerLayout/DrawerLayout.web.js
Module not found: Error: Cannot resolve module 'react' in /Users/zhongshu/Documents/react/react-native-web-example/node_modules/react-web/lib/DrawerLayout
@ ./
/react-web/lib/DrawerLayout/DrawerLayout.web.js 17:13-29

ERROR in .//react-web/lib/Image/Image.web.js
Module not found: Error: Cannot resolve module 'react' in /Users/zhongshu/Documents/react/react-native-web-example/node_modules/react-web/lib/Image
@ ./
/react-web/lib/Image/Image.web.js 13:13-29

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