Skip to content
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

Cannot resolve dependency 'rmc-steps' #1

Closed
heymind opened this issue Feb 15, 2018 · 5 comments
Closed

Cannot resolve dependency 'rmc-steps' #1

heymind opened this issue Feb 15, 2018 · 5 comments

Comments

@heymind
Copy link

heymind commented Feb 15, 2018

×  D:\workspace\dfeed-zone\node_modules\antd-mobile\lib\steps\index.js:31:24: Cannot resolve dependency 'rmc-steps'
  29 | var _react2 = _interopRequireDefault(_react);
  30 |
> 31 | var _rmcSteps = require('rmc-steps');
     |                         ^
  32 |
  33 | var _rmcSteps2 = _interopRequireDefault(_rmcSteps);
  34 |
  "main": "./lib/index",
  "module": "./es/index", //<----------------------------------(this line)----
  "files": [
    "lib",
    "assets/iconfont.css",
    "assets/index.css"
  ],

But there's no folder called es.It's all right when I remove 'this line' above.
image

@cncolder
Copy link

cncolder commented Jul 1, 2018

friendly ping @silentcloud

这个 module 字段确实会引起一些问题, 例如 parcel 目前就无法打包 antd-mobile.

ref parcel-bundler/parcel#1422

@qwIvan
Copy link

qwIvan commented Sep 23, 2018

@cncolder 遇到相同问题

@healim
Copy link

healim commented Oct 6, 2018

I have same issue here. I read parcel-bundler/parcel#1422 but have no idea :( How can I fix this problem? I am using "parcel": "^1.9.7", "parcel-bundler": "^1.9.7".

@healim
Copy link

healim commented Oct 6, 2018

I fixed the bug by downgrading ant-design-mobile version to "antd-mobile": "2.2.0", (latest version is 2.2.4).
ref Modal cannot input anything #2285

@silentcloud
Copy link
Member

Sorry for this. bump 1.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants