Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

searchPaths.filter is not a function #94

Open
999946 opened this issue Jul 6, 2016 · 8 comments
Open

searchPaths.filter is not a function #94

999946 opened this issue Jul 6, 2016 · 8 comments

Comments

@999946
Copy link

999946 commented Jul 6, 2016

rnpm unlink react-native-image-picker
rnpm-link info Android module react-native-image-picker is not installed 
rnpm-link info Unlinking react-native-image-picker ios dependency 
/usr/local/Cellar/nvm/0.31.0/versions/node/v6.2.0/lib/node_modules/rnpm/node_modules/xcode/lib/pbxProject.js:1147
            var matches = searchPaths.filter(function(p) {
                                      ^

TypeError: searchPaths.filter is not a function
    at pbxProject.removeFromLibrarySearchPaths (/usr/local/Cellar/nvm/0.31.0/versions/node/v6.2.0/lib/node_modules/rnpm/node_modules/xcode/lib/pbxProject.js:1147:39)
    at removeFromStaticLibraries (/usr/local/Cellar/nvm/0.31.0/versions/node/v6.2.0/lib/node_modules/rnpm/node_modules/rnpm-plugin-link/src/ios/removeFromStaticLibraries.js:17:11)
    at getProducts.forEach.product (/usr/local/Cellar/nvm/0.31.0/versions/node/v6.2.0/lib/node_modules/rnpm/node_modules/rnpm-plugin-link/src/ios/unregisterNativeModule.js:36:5)
    at Array.forEach (native)
    at unregisterNativeModule (/usr/local/Cellar/nvm/0.31.0/versions/node/v6.2.0/lib/node_modules/rnpm/node_modules/rnpm-plugin-link/src/ios/unregisterNativeModule.js:35:34)

RN v0.28
nvm v0.31.0
node v6.2.0

@tomazahlin
Copy link

I have the same problem!! Any help?? But I think this is react-native-image-picker related, maybe it is better to ask there.

@Kureev
Copy link
Member

Kureev commented Sep 27, 2016

cc @grabbou

@jjhesk
Copy link

jjhesk commented Feb 15, 2017

@grabbou i got this issue also. please help us..

@Amurmurmur
Copy link

Same issue here

@Jarred-Sumner
Copy link

same issue

@grabbou
Copy link
Member

grabbou commented Mar 12, 2017 via email

@fdnhkj
Copy link

fdnhkj commented Mar 21, 2017

I have the same issue when unlinking react-native-svg iOS dependency with react-native CLI.

hakaj$ react-native unlink react-native-svg
Scanning 621 folders for symlinks in /Users/hakaj/code-projects/my-proximus-app/node_modules (16ms)
rnpm-install info Android module react-native-svg is not installed
rnpm-install info Unlinking react-native-svg ios dependency
rnpm-install ERR! It seems something went wrong while unlinking. Error: searchPaths.filter is not a function

@hbarylskyi
Copy link

solution can be found here

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants