-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
ESLint 报错 Unable to resolve path to module 'antd-mobile' import/no-unresolved #523
Comments
仔细对照看文档。 |
感谢回复,在提这个 issue 之前我已经搜索过相关问题,没有 eslint 相关的。 |
你意思是使用
这个规则吗? 如果是这样的话,并不认为是好的解决方案 |
欢迎你提供更好的方案建议~ |
把默认的 main 设为 |
@afc163 额,没懂你说的 |
我是和 @warmhug 说的。 |
有什么进展吗 |
目前暂时在引入 antd 的地方使用 eslint-disable-line |
@xwartz
"import/no-extraneous-dependencies" 和 "import/extensions" 的设置和本问题无关,只是现在的我们的项目里 "import/no-unresolved" 和 "import/no-extraneous-dependencies" 都设置为 0 不妥当 |
@yoniji 谢谢,你的方式比我的好多了 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
本地环境
Mac
antd-mobile: 0.9.4
ESLint: 2.10.1
babel-eslint: 6.0.4
在 react-native 中使用
你做了什么?
引入模块
ESLint parse 使用的是 babel-eslint
你期待的结果是:
ESLint 不报错
实际上的结果:
Unable to resolve path to module 'antd-mobile' import/no-unresolved
The text was updated successfully, but these errors were encountered: