-
Notifications
You must be signed in to change notification settings - Fork 24.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
Cannot read property 'assetsPath' of null (react-native link) #18249
Comments
Exactly the same here! |
The same, can someone know how to fix this? |
@msageryd I had the same issue as you however I realized that I wasn't in my react native project directory when I ran |
Same here! :( |
In my case I'm developing an iOS only project in a subdirectory Also opened a PR with fix: #18660 |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
u need to add the assert youself. i also meet the problem, i just drag the asset to the xcode, and its works ok. |
Same ! |
Summary: Fixes #18249 This PR fixes an error that occurs when running `react-native link` in projects laid out as described on the React Native website section on integrating with existing apps (https://facebook.github.io/react-native/docs/integration-with-existing-apps.html) where an `ios/` subdirectory exists but an `android/` subdirectory does not exist <img width="1050" alt="screenshot 2018-04-02 14 57 27" src="https://user-images.githubusercontent.com/2475286/38210733-3f4bd9ea-3686-11e8-9bd3-d299812a015c.png"> None [CLI] [BUGFIX] [local-cli/core/android/index.js] - Allow for undefined userConfig Pull Request resolved: #18660 Differential Revision: D9235171 Pulled By: hramos fbshipit-source-id: 230dd54f8911046f7e01633f99c4f02070fa0172
Can anyone from React Native team give solution to the issue.
|
I had some missing Android files, checkout from the git again helps. Just did a git checkout android and it works. Thanks for the tips! |
any solution??? |
This happened to me when I deleted the |
Environment
Environment:
OS: macOS Sierra 10.12.6
Node: 8.6.0
Yarn: 1.2.1
npm: 5.3.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: Not Found
Packages: (wanted => installed)
react: ^16.2.0 => 16.2.0
react-native: ^0.54.0 => 0.54.0
Expected Behavior
Should link all native libs.
Actual Behavior
react-native-link tells me that all libs are linked (as they are), but at the end there is a "linking assets.." that seems to go wrong.
I get
Cannot read property 'assetsPath' of null
Update:
I get the same error when I try to unlink a library, i.e.:
react-native unlink react-native-vector-icons
gives me:
Steps to Reproduce
I upgraded from RN 0.51 to 0.54 via react-native-git-upgrade. I was told there where conflicts in the project file, but I didn't find any conflicts.
The project itself does not run after upgrade to 0.54. This is as usual when I try to upgrade RN. after some tinkering it usually starts to work, but not this time. I suspect the "assetsPath" to be the problem.
The text was updated successfully, but these errors were encountered: