react-native-spinkit icon indicating copy to clipboard operation
react-native-spinkit copied to clipboard

can not use on react-native 0.44

Open xy371661665 opened this issue 7 years ago • 3 comments

xy371661665 avatar Jun 26 '17 10:06 xy371661665

Same here -

Error: ENOENT: no such file or directory, open '/Users/txie/Documents/GitHub/Recip/client/RecipRN/android/build.gradle' at Object.fs.openSync (fs.js:651:18) at Object.fs.readFileSync (fs.js:553:33) at Object.<anonymous> (/Users/txie/Documents/GitHub/Recip/client/RecipRN/node_modules/react-native-spinkit/scripts/rnpm-prelink.js:7:16) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3) at Function.Module.runMain (module.js:605:10) at startup (bootstrap_node.js:158:16) Failed to load android/build.gradlewhen linking react-native-spinkit Could not findallprojects { }` block in build.gradle /Users/txie/Documents/GitHub/Recip/client/RecipRN/node_modules/react-native-spinkit/scripts/rnpm-prelink.js:21 var str = depStr[0]; ^

TypeError: Cannot read property '0' of null at Object. (/Users/txie/Documents/GitHub/Recip/client/RecipRN/node_modules/react-native-spinkit/scripts/rnpm-prelink.js:21:17) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3) at Function.Module.runMain (module.js:605:10) at startup (bootstrap_node.js:158:16) at bootstrap_node.js:575:3 /Users/txie/Documents/GitHub/Recip/client/RecipRN/node_modules/react-native/local-cli/core/makeCommand.js:29 throw new Error(Error occured during executing "${command}" command); ^

Error: Error occured during executing "node ./node_modules/react-native-spinkit/scripts/rnpm-prelink.js" command at ChildProcess.prelink (/Users/txie/Documents/GitHub/Recip/client/RecipRN/node_modules/react-native/local-cli/core/makeCommand.js:29:15) at emitTwo (events.js:125:13) at ChildProcess.emit (events.js:213:7) at maybeClose (internal/child_process.js:897:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)`

looks like it's trying to find the build.gradle from wrong path (or maybe for RN 0.44+ we no longer have that file?)

AfflatusX avatar Jul 13 '17 03:07 AfflatusX

Me neither. my version is 0.46.

NikiLee2016 avatar Jul 26 '17 13:07 NikiLee2016

me neither!

nschurmann avatar Aug 09 '17 23:08 nschurmann