searchPaths.filter is not a function, when unlinking
See original GitHub issueDescription
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:
- Created 6 years ago
- Reactions:20
- Comments:24 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
my quick fix: file: /node_modules/react-native/node_modules/xcode/lib/pbxProject.js line 1146: change the condition from
if(searchPaths)
toif (searchPaths && searchPaths !== '"$(inherited)"')
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
, andLIBRARY_SEARCH_PATHS
.react-native unlink
seems to be expecting these to be lists in all cases, but many projects just have one value as inInstead, as a workaround, you should make them into a list: