question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"react-native link" error

See original GitHub issue

I tried to run react-native link after running npm install, this was working fine before now I got this error ERR! It seems something went wrong while linking. Error: Expected "/* Begin ", "/* End ", "\"" or [A-Za-z0-9_.] but "<" found. Please file an issue here: https://github.com/facebook/react-native/issues

What causes this error?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:16
  • Comments:35 (5 by maintainers)

github_iconTop GitHub Comments

40reactions
ncuillerycommented, Apr 19, 2017

@dillonykyang I had a similar issue.

Before using the link command, change all the HEADER_SEARCH_PATHS that have a mono-string value

HEADER_SEARCH_PATHS = "$(SRCROOT)/../node_modules/react-native-navigation/ios/**";

to a multi-string value:

HEADER_SEARCH_PATHS = (
  "$(SRCROOT)/../node_modules/react-native-navigation/ios/**",
);

The link command should work properly now.

12reactions
percivalruiz-bibocommented, Mar 16, 2018

Have you tried doing react-native upgrade before react-native link? That worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting error while doing react-native link - Stack Overflow
2- Try npm i to fix the problems with dependencies, then command react-native run-android to make sure your dependencies and "node_modules" ...
Read more >
Addressing common errors in React Native - LogRocket Blog
This error occurs when you attempt to use the manual linking feature (i.e. react-native link and react-native link unlink commands), which have ...
Read more >
Troubleshooting - React Native
If you encounter an error such as npm WARN locking Error: EACCES while using the React Native CLI, try running the following:.
Read more >
error Unrecognized command "link"., install google fonts - Reddit
Link has been removed from the latest versions of react native. Use react-native-asset for RN 0.69+. Install npm install -g ...
Read more >
React Native SDK Troubleshooting - Visual Studio App Center
This error appears when RN core libraries aren't referenced correctly, which can be caused by different kinds of integrating or linking issues.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found