You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
lockbot
locked as resolved and limited conversation to collaborators
May 28, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
本地环境
使用react-native-cli命令,构建的项目。此项目是ios、安卓应用。
已设置
"plugins": [
[
"import", {"style": "css","libraryName": "antd-mobile"}
]
]
问题1、如何配置resolve?
问题2、import {NoticeBar} from 'antd-mobile';这种方式引入,提示错误:unable resolve module ant-mobile/lib/notice-bar/style/css.
如果使用import NoticeBar from 'antd-mobile/lib/notice-bar/index';测运行正常。
建议官方构建工具不要那么复杂,既然是以UI为主,仅可以基于react生态系统构建简单的配置。antd-mobile拆分为H5,和mobile(ios+安卓)。方便开发。
The text was updated successfully, but these errors were encountered: