New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问要用ant-design-mobile 必须安装 react-native吗? #66

Closed
choukin opened this Issue Aug 10, 2016 · 16 comments

Comments

Projects
None yet
@choukin

choukin commented Aug 10, 2016

Module not found: Error: Cannot resolve module 'react-native'

我想做一个web项目引入button后提示上面内容

请问要用ant-design-mobile 必须安装 react-native吗?

@silentcloud

This comment has been minimized.

Show comment
Hide comment
@silentcloud

silentcloud Aug 10, 2016

Contributor

web 项目的话,react-native 是不需要安装的,你可以对照 #56 demo 项目看看哪里有少什么 @choukin

Contributor

silentcloud commented Aug 10, 2016

web 项目的话,react-native 是不需要安装的,你可以对照 #56 demo 项目看看哪里有少什么 @choukin

@yiminghe

This comment has been minimized.

Show comment
Hide comment
@yiminghe

yiminghe Aug 10, 2016

Contributor

Set webpack to resolve .web.js suffix

resolve: {
modulesDirectories: ['node_modules', path.join(__dirname, '../node_modules')],
extensions: ['', '.web.js', '.js', '.json'],
},

Contributor

yiminghe commented Aug 10, 2016

Set webpack to resolve .web.js suffix

resolve: {
modulesDirectories: ['node_modules', path.join(__dirname, '../node_modules')],
extensions: ['', '.web.js', '.js', '.json'],
},

@yiminghe yiminghe closed this Aug 10, 2016

@kairi1227

This comment has been minimized.

Show comment
Hide comment
@kairi1227

kairi1227 Aug 12, 2016

@yiminghe 添加了上述配置还是出现异常,如何破?
antd-mobile是通过cnpm install的。

/~/.npminstall/antd-mobile/0.7.5/antd-mobile/lib/date-picker/PopupStyles.js
Module not found: Error: Cannot resolve module 'react-native' in D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\lib\date-picker
resolve module react-native in D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\lib\date-picker
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native.web.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native.json doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native.web.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native.json doesn't exist
    resolve 'bower component' react-native manifest files using [bower.json]
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\lib\date-picker\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\lib\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\reservation\iWork-Web\node_modules\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\reservation\iWork-Web\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\reservation\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\bower_components\react-native\bower.json doesn't exists
        D:\bower_components\react-native\bower.json doesn't exists
        D:\..\bower_components\react-native\bower.json doesn't exists
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native.json]
 @ ./~/.npminstall/antd-mobile/0.7.5/antd-mobile/lib/date-picker/PopupStyles.js 7:19-42

kairi1227 commented Aug 12, 2016

@yiminghe 添加了上述配置还是出现异常,如何破?
antd-mobile是通过cnpm install的。

/~/.npminstall/antd-mobile/0.7.5/antd-mobile/lib/date-picker/PopupStyles.js
Module not found: Error: Cannot resolve module 'react-native' in D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\lib\date-picker
resolve module react-native in D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\lib\date-picker
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native.web.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native.json doesn't exist
  looking for modules in D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules
    D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native doesn't exist (module as directory)
    resolve 'file' react-native in D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native.jsx doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native.web.js doesn't exist
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native.json doesn't exist
    resolve 'bower component' react-native manifest files using [bower.json]
      resolve file
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\lib\date-picker\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\lib\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\reservation\iWork-Web\node_modules\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\reservation\iWork-Web\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\reservation\bower_components\react-native\bower.json doesn't exists
        D:\myworkspace\bower_components\react-native\bower.json doesn't exists
        D:\bower_components\react-native\bower.json doesn't exists
        D:\..\bower_components\react-native\bower.json doesn't exists
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\antd-mobile\0.7.5\antd-mobile\node_modules\react-native.json]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native.jsx]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native.web.js]
[D:\myworkspace\reservation\iWork-Web\node_modules\.npminstall\node_modules\react-native.json]
 @ ./~/.npminstall/antd-mobile/0.7.5/antd-mobile/lib/date-picker/PopupStyles.js 7:19-42
@yiminghe

This comment has been minimized.

Show comment
Hide comment
@zhaotoday

This comment has been minimized.

Show comment
Hide comment
@zhaotoday

zhaotoday Aug 19, 2016

resolve: {
  ...
  extensions: ['', '.web.js', '.js', '.json']
}

我遇到类似问题,把 .web.js 放在 .js 前面就可以。

zhaotoday commented Aug 19, 2016

resolve: {
  ...
  extensions: ['', '.web.js', '.js', '.json']
}

我遇到类似问题,把 .web.js 放在 .js 前面就可以。

@monsuns

This comment has been minimized.

Show comment
Hide comment
@monsuns

monsuns Nov 25, 2016

研究历程:
建好react全家桶项目-> 安装 antd-mobile -> 提示需要 react-native -> 安装react-native -> 提示找不到 ant-mobile -> 研究mobileDemo 的配置并尝试修改, 安装各种其他的插件 -> 不提示找不到ant-mobile了, 提示native DEV not defined. -> 翻GitHub,翻源码, 发现功力不够&时间不够 ->放弃, 改用别的库

不明白构建纯web移动端项目, 干嘛要弄react-native 呢. 另外, antd-mobile 不应该是个组件库么, 为什么demo里面连dva, dora, atool 一整套全放进去? 不用这一套就没有办法用这个组件库么.
web版的ant库真的不错, antd-mobile 还有待友好化啊..

monsuns commented Nov 25, 2016

研究历程:
建好react全家桶项目-> 安装 antd-mobile -> 提示需要 react-native -> 安装react-native -> 提示找不到 ant-mobile -> 研究mobileDemo 的配置并尝试修改, 安装各种其他的插件 -> 不提示找不到ant-mobile了, 提示native DEV not defined. -> 翻GitHub,翻源码, 发现功力不够&时间不够 ->放弃, 改用别的库

不明白构建纯web移动端项目, 干嘛要弄react-native 呢. 另外, antd-mobile 不应该是个组件库么, 为什么demo里面连dva, dora, atool 一整套全放进去? 不用这一套就没有办法用这个组件库么.
web版的ant库真的不错, antd-mobile 还有待友好化啊..

@warmhug

This comment has been minimized.

Show comment
Hide comment
@warmhug

warmhug Nov 25, 2016

Contributor

@monsuns 抱歉带来困扰。接下来两三周将投入更多精力,解决类似你描述的上手复杂度等问题。

Contributor

warmhug commented Nov 25, 2016

@monsuns 抱歉带来困扰。接下来两三周将投入更多精力,解决类似你描述的上手复杂度等问题。

@Here21

This comment has been minimized.

Show comment
Hide comment
@Here21

Here21 Dec 1, 2016

@warmhug 我们在Meteor项目中,使用webpack有现成的包,使用antd很好的就可以使用,很方便,而antd-m,却困难重重,一直提示:

ERROR in ./~/antd-mobile/lib/card/CardHeader.js
Module not found: Error: Cannot resolve module 'react-native' in /home/martin/WorkSpace/Projects/meteor-react-redux-base/node_modules/antd-mobile/lib/card
 @ ./~/antd-mobile/lib/card/CardHeader.js 24:19-42
...

Here21 commented Dec 1, 2016

@warmhug 我们在Meteor项目中,使用webpack有现成的包,使用antd很好的就可以使用,很方便,而antd-m,却困难重重,一直提示:

ERROR in ./~/antd-mobile/lib/card/CardHeader.js
Module not found: Error: Cannot resolve module 'react-native' in /home/martin/WorkSpace/Projects/meteor-react-redux-base/node_modules/antd-mobile/lib/card
 @ ./~/antd-mobile/lib/card/CardHeader.js 24:19-42
...
@afc163

This comment has been minimized.

Show comment
Hide comment
@afc163

afc163 Dec 1, 2016

Member

main 加上吧 @warmhug

Member

afc163 commented Dec 1, 2016

main 加上吧 @warmhug

@Pines-Cheng

This comment has been minimized.

Show comment
Hide comment
@Pines-Cheng

Pines-Cheng Jul 7, 2017

antd用的还不错,正好移动端项目上antd-mobile,怎么这么艰难啊。。。

Pines-Cheng commented Jul 7, 2017

antd用的还不错,正好移动端项目上antd-mobile,怎么这么艰难啊。。。

@AnxioVic

This comment has been minimized.

Show comment
Hide comment
@AnxioVic

AnxioVic Jul 18, 2017

现在就是无法按需加载。太痛苦了。求给一个配置好的脚手架。

AnxioVic commented Jul 18, 2017

现在就是无法按需加载。太痛苦了。求给一个配置好的脚手架。

@stonecold123

This comment has been minimized.

Show comment
Hide comment
@stonecold123

stonecold123 Jul 31, 2017

It's a pain to set up for the web development.

stonecold123 commented Jul 31, 2017

It's a pain to set up for the web development.

@silentcloud

This comment has been minimized.

Show comment
Hide comment
@silentcloud

silentcloud Aug 1, 2017

Contributor

@AnxioVic @stonecold123 4f5e06d 这个改动就不会有痛苦了,脚手架见 https://github.com/ant-design/antd-mobile-samples

Contributor

silentcloud commented Aug 1, 2017

@AnxioVic @stonecold123 4f5e06d 这个改动就不会有痛苦了,脚手架见 https://github.com/ant-design/antd-mobile-samples

@paranoidjk

This comment has been minimized.

Show comment
Hide comment
@paranoidjk

paranoidjk Aug 1, 2017

Member

antd mobile 2.0会彻底解决这个问题,web用户无需特殊配置,也不会受 rn 影响

Member

paranoidjk commented Aug 1, 2017

antd mobile 2.0会彻底解决这个问题,web用户无需特殊配置,也不会受 rn 影响

@stonecold123

This comment has been minimized.

Show comment
Hide comment
@stonecold123

stonecold123 Aug 2, 2017

@paranoidjk @silentcloud 刚看到2.0 alpha,那几个步骤可以省略?

stonecold123 commented Aug 2, 2017

@paranoidjk @silentcloud 刚看到2.0 alpha,那几个步骤可以省略?

@gzlinjialong

This comment has been minimized.

Show comment
Hide comment
@gzlinjialong

gzlinjialong Nov 23, 2017

import List from 'antd-mobile/lib/list';
无法按需导入List控件,增加
import ListItem from 'antd-mobile/lib/list';
还是不行。
运行时提示错误:
bundle.js:6 Uncaught TypeError: Cannot read property 'Item' of undefined
at Object. (bundle.js:6)
at t (bundle.js:1)
at bundle.js:1
at bundle.js:1
(anonymous) @ bundle.js:6
t @ bundle.js:1
(anonymous) @ bundle.js:1
(anonymous) @ bundle.js:1

gzlinjialong commented Nov 23, 2017

import List from 'antd-mobile/lib/list';
无法按需导入List控件,增加
import ListItem from 'antd-mobile/lib/list';
还是不行。
运行时提示错误:
bundle.js:6 Uncaught TypeError: Cannot read property 'Item' of undefined
at Object. (bundle.js:6)
at t (bundle.js:1)
at bundle.js:1
at bundle.js:1
(anonymous) @ bundle.js:6
t @ bundle.js:1
(anonymous) @ bundle.js:1
(anonymous) @ bundle.js:1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment