-
Notifications
You must be signed in to change notification settings - Fork 611
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
warn Package @ant-design/react-native contains invalid configuration: "dependency.assets" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this. error: unknown command 'link' #1289
Comments
Try this: React Native 0.69 update Other thing you can try to refactor the react-native.config.js inside the @ant-design package in node modules for:
and the one inside icons-react-native:
|
@eliomaria can you elaborate a bit more? I am in the root of my project and run 'npx react-native-asset' and it says I presume i need to cd into the node modules folder? I just did so and the command runs, but the Icons still don't work Also surely editing the files you state above in node modules is not sustainable, so we need to create a patch file or similar? |
I was running into the same wanrings but also with @ant-design/icons-react-native. I cleared the warning messages and resolved the link using a combination of steps from both issues. But I do agree updating node_modules is not sustainable.
First run the solution by @huzhanbo1996 in ant-design/ant-design-icons#535 (comment)NOTE: I updated the steps for
Next, I complete the steps from @eliomaria in #1289 (comment)NOTE: I updated the steps to clarify some points and fixed the asset line for step 3.
Best of luck with your project! |
Thanks @avrahm, I've since moved on to using React Paper, but I hope your reply helps someone! |
Thanks a lot, it works for me 👍 |
非常感谢!!我用这个方法也解决了问题!! |
fixed in 5.1.2 see the detail in https://github.com/ant-design/ant-design-mobile-rn/blob/master/docs/react/introduce.en-US.md#2-installation |
Reproduction link
Steps to reproduce
初始化项目报错
What is expected?
期望修复这个错误
What is actually happening?
期望修复这个错误
The text was updated successfully, but these errors were encountered: