-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Error when linking: "Expected "/*", "//" or "{" but "<" found" #10032
Comments
+1, this is happening to me on every link no matter what library, same versions as OP. |
Had this issue today trying to
|
Seems like this is related to this: CocoaPods/CocoaPods#1275 My pbxproj gets converted to the new XML format after installing a pod, and the xcode node parser is expecting the old format. |
This solved it for me |
I'm also getting this problem, I checked out @tarr11 's fix, but I'm not 100% why it isn't working. If someone got this going, I know its a bit to ask, but can you post instructions on what to do? |
@the-simian , i kind of gave up on this a while ago, and just linked manually. its not that bad, once you get used to it, haha. i went here https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking , and followed their steps and that worked for me (but i've only linked like a couple libraries) |
This really should not be closed. This has been an ongoing problem for some time. |
I cannot upgrade to |
I had something similar too, I was getting:
Comparing with an older version of my code which worked, it looked like the problem was inside my iOS
Removing the leading space fixed the problem for me:
|
Ran into this after
All was well once I changed to format:
|
@tybro0103 's solution worked for me. But note that there are many of |
I have the exact same issue trying to link react-native-fbsdk and I've checked my *.pbxproj and it's all good. |
+1 same problem as Deevent's |
+1 same problem as Deevent's |
@BATMAH69 ... and that worked? |
@edencakir Seems its work =) |
@BATMAH69 @edencakir |
@dzhuowen It seems the problem was somewhere in this commit.facebookarchive/react-native-fbsdk@a5bf87c |
Thanks! Worked for me @BATMAH69 ... but i won't to ask ... does FBSDK have problem ?! i try to do login with Facebook and that not work at all (with last react native ) Unable to resolve modules i face it every time i try a lot of tutorials !! |
@Tawfeekamr On Monday morning I set up a fb login for android. With version 0.6.0 there was a bug with java dependencies. After I fixed it with android everything was fine. Today I wanted to set up on iOs but because of this problem I did not have time. I'll set up tomorrow if everything works out. I will rely on this instruction and from react-native-fbsdk examples =) Update: npm install react-native-fbsdk@0.6.0 --save add changes from this file |
@BATMAH69 Thanks! It works for me :) |
@BATMAH69 Thanks dear that worked 💯 % when i created new project and do your tips! ... For Github ppl there is more tips after BATMAH69 words:- Then i have issue with LoginManager i fixed by do this:export default class YourApp extends Component { _YourFuncation { And render code:render() {
By following this tips: https://developers.facebook.com/docs/react-native/login To download index.iOS.js files (code worked 100% ... so if any one have issue search about another thing) : |
Thanks a lot @BATMAH69 ! |
Thanks for the hint @BATMAH69. Worked for me as well. I unlinked and removed and then installed version 0.6.0 using Yarn and linked without any issues. |
@BATMAH69 I have implemented same as you have provided solution here.
Even though I got this issue.
But when I comment |
@harish-rw I use solution first solution from https://stackoverflow.com/a/44191712
Sorry, I didn't try another :) But you can try this one https://stackoverflow.com/a/44205756 it force то sdk version |
@BATMAH69 Thanks for taking your precious time to respond me. Here are my changes.
In the file mobileApp/android/app/build.gradle
MainApplication.java
MainActivity.java
Please guide how can I resolve this. |
I use 0.6.0 version. I not very good in native code, can only show mine =) In this file node_modules/react-native-fbsdk/android/build.gradle
MainApplication.java & MainActivity.java are same as in my comment higher. |
I am using RN
now you can run |
This was reliably working for me on one system and not on another, so managed to narrow this down to being an encoding issue. We were able to confirm this using a freshly init'ed project using the latest cli (2.0.1). A successful workaround for me is to explicitly unset the LANG environment variable when running link or install (install is a wrapper around npm install/yarn add and link):
Does this work for anyone else? |
@piemonkey |
while we await the merge of fbsdk, the problem can be bypassed with manual installation: yarn add https://github.com/facebook/react-native-fbsdk.git#47b906a Android already works For IOS, is necessary manual installation tested in RN 0.48.4 |
@ArmandoAssuncao Using that commit hash didn't make any difference to me, I still have the same problem. Admittedly I'm on RN 0.47.2, but I don't know if that makes a difference as I tested previously with a fresh 0.48.x project. What's your |
@piemonkey the problem can be bypassed with manual installation, but not fixed. I wrote wrong, sorry. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
I've just tested this on a new project (react-native-cli 2.0.1, react-native 0.50.4, react-native-fbsdk 0.6.3) and it seems to work, so I guess this could be marked as closed. |
@piemonkey both ios and android? |
As far as I know this bug was only on iOS, that's the only place I saw the results the OP reported and I don't think there are any comments which contradict me. I believe the problems mentioning Android above are related to a different bug which I reported on their private bug tracker and got pseudo-ignored. I'm going to check if that's still an issue and try to re-open if it is. If that report accurately describes your symptoms, I'd suggest pushing for fixes over there. |
A work around that take to solve this issue is like below:
|
@VanMen I haven't tested your fix because I beleive it's fixed with the latest releases. Given that it used to occur with a fresh project with no changes to the android or ios code I'd be surprised if that workaround made any difference. I'd be interested if anyone is still seeing this or if it can be marked as closed. |
For me the problem was that, HEADER_SEARCH_PATHS = "$(SRCROOT)/..""$(SRCROOT)/../node_modules/appcenter/ios/AppCenterReactNative"; instead of this: HEADER_SEARCH_PATHS = (
"$(SRCROOT)/..",
"$(SRCROOT)/../node_modules/appcenter/ios/AppCenterReactNative",
); so I think the problem is in this file: |
this case if you use "yarn" |
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. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Issue Description
When running
react-native link
, I get some kind of parse error. However, this parse error is impossible to debug, because it doesn't give me any filename, line number, or column number.I was told to file an issue at https://github.com/rnpm/rnpm/issues but that directed me to file issues here instead.
Steps to Reproduce / Code Snippets
Expected Results
No idea. I did it because these instructions tell me to.
Additional Information
The text was updated successfully, but these errors were encountered: