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.

searchPaths.filter is not a function, when unlinking

See original GitHub issue

Description

i tried unlinking a library and i got an error

react-native unlink react-native-video
Scanning 870 folders for symlinks in /Users/pvinis/Source/mycujoo/mycujoo-mobile/node_modules (9ms)
rnpm-install info Unlinking react-native-video ios dependency
rnpm-install ERR! It seems something went wrong while unlinking. Error: searchPaths.filter is not a function

searchPaths.filter is not a function

Reproduction Steps and Sample Code

try to link and then unlink a library i guess.

Solution

no idea.

Additional Information

  • React Native version: 0.42.3
  • Platform: iOS
  • Development Operating System: MacOS
  • Dev tools: Xcode

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:20
  • Comments:24 (2 by maintainers)

github_iconTop GitHub Comments

44reactions
minhtccommented, Apr 3, 2017

my quick fix: file: /node_modules/react-native/node_modules/xcode/lib/pbxProject.js line 1146: change the condition from if(searchPaths) to if (searchPaths && searchPaths !== '"$(inherited)"')

18reactions
mienaikoecommented, Jul 8, 2017

hey @qruzz . It’s been a while, but I think I remember what I was talking about:

Somewhere near the bottom of the file, you’ll have your build configurations. In here there are several build settings, including HEADER_SEARCH_PATHS, FRAMEWORK_SEARCH_PATHS, and LIBRARY_SEARCH_PATHS. react-native unlink seems to be expecting these to be lists in all cases, but many projects just have one value as in

HEADER_SEARCH_PATHS = "$(inherited)"

Instead, as a workaround, you should make them into a list:

HEADER_SEARCH_PATHS = (
	"$(inherited)",
);
Read more comments on GitHub >

github_iconTop Results From Across the Web

filter is not a function [duplicate] - Stack Overflow
filter is a method on arrays. Since the code you posted contains an object, you're seeing this error. You may want to apply...
Read more >
Chapter 6 Functions | Advanced R Exercises - Bookdown
The first expression is not correct since the function will evaluate 3() ... we can find all replacement functions in search paths and...
Read more >
which: Which indices are TRUE? - Rdrr.io
If names(.dimnames) is not empty, these are used as column names. ... Unlike most other base R functions this does not coerce x...
Read more >
QNX® Software Development Platform 6.6 <br/> QNX® SDK for ...
The unlink utility is a command-line interface to the unlink() function: (void)unlink( file );. You need the appropriate permissions (typically write ...
Read more >
5 UNIX Implementation Details - Oracle Help Center
If the file "notes.ini" does not exist, create it in that directory and ... Chunker (provides caching of and access to filter data...
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