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

react-native link @ant-design/icons-react-native failed #598

Closed
1 task done
innocces opened this issue Aug 8, 2019 · 6 comments
Closed
1 task done

react-native link @ant-design/icons-react-native failed #598

innocces opened this issue Aug 8, 2019 · 6 comments

Comments

@innocces
Copy link

innocces commented Aug 8, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://没有repo

Steps to reproduce

1 yarn add @ant-design/react-native
2 react-native link @ant-design/icons-react-native

What is expected?

success linked

What is actually happening?

error Unknown dependency. Make sure that the package you are trying to link is already installed in your "node_modules" and present in your "package.json" dependencies. Run CLI with --verbose flag for more details.

Environment Info
antd 3.1.12
React 0.60.4
System macOSMojave 10.14.6
Browser simulator 12.4
@innocces
Copy link
Author

innocces commented Aug 8, 2019

Added: '@ant-design/react-native' already exists in package.json

@innocces
Copy link
Author

innocces commented Aug 8, 2019

image

@Joursion
Copy link

image
XCode 已经配置了,也遇到这个问题

@innocces
Copy link
Author

image
XCode 已经配置了,也遇到这个问题

The steps I took to solve the problem:

  1. Manually add'@ant-design/icons-react-native'to'package.json'
  2. Re-execute'link'
    It's silly, but it solves the current problem.

@Joursion
Copy link

Joursion commented Aug 11, 2019

image
XCode 已经配置了,也遇到这个问题

The steps I took to solve the problem:

  1. Manually add'@ant-design/icons-react-native'to'package.json'
  2. Re-execute'link'
    It's silly, but it solves the current problem.

原因可能是我用的 ts 模板的脚手架生成的,用普通的脚手架可以了
看来是我的环境不行,我试过 N 次 删除 node_modules , 重新 install,重新 link,而且 link 也是提示成功的,但是就是运行之后,就会报这个错。

react-native link @ant-design/icons-react-native
info Linking assets to ios project
info Linking assets to android project
success Assets have been successfully linked to your project

@anfalch6
Copy link

It worked for me,try:
1.yarn add @ant-design/icons-react-native or npm install @ant-design/icons-react-native
2.react-native link @ant-design/icons-react-native

GrigoryPtashko added a commit to GrigoryPtashko/ant-design-mobile-rn that referenced this issue Oct 3, 2019
* upstream/master:
  bump
  test: update snap
  fix: locale
  pr ant-design#568 (ant-design#615)
  English typo (ant-design#637)
  English typo (ant-design#632)
  test: fixes tabs
  fix: miss TouchableOpacity
  chore: tabs  add RenderTabBar demo close ant-design#630
  chore: add demo fixes ant-design#545
  bump
  Add longPress support to ListItem and amend ListItemProps (ant-design#619)
  fix: test of search-bar
  bump
  fix: type definition of search-bar
  给Modal加上了返回键的监听 (ant-design#611)
  chore: doc
  fix: update react-native autolinking fixes ant-design#598
  bump
  DatePicker组件增加一个defaultDate属性,指定默认的选中时间 (ant-design#593)
  bump
  Grid新的一行不满columnNum时,如果自定义了itemStyle,用来填充columnNum的item样式会和正常的item不一样的问题 (ant-design#583)
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

3 participants