I ran across realm when researching options for an embedded database to use for my first react-native app.
Following the steps documented here:
https://realm.io/docs/react-native/latest/#examples
I entered the following commands:
git clone https://github.com/realm/realm-js.git
cd realm-js/examples/ReactExample
npm install
When I open ReactExample.xcodeproj and attempt to build:
clang: error: no such file or directory: '/Users/edward3/Documents/projects/react-native/realm/realm-js/vendor/GCDWebServer/GCDWebServer/Core/GCDWebServerRequest.m'
clang: error: no input files
What am I missing?
Never mind, I was missing git submodule update.
git clone https://github.com/realm/realm-js.git
git submodule update --init --recursive
cd realm-js/examples/ReactExample
npm install
I am excited about learning to use realm. The realm example, at first glance, seems simple to learn compared to react-native sqlite examples.
https://realm.io/news/introducing-realm-react-native/
Related
Plugin [id: 'com.facebook.react.codegen'] was not found in any of the following sources:
Capture screen error
I am build react native from source (follow by this step : https://github.com/facebook/react-native/wiki/Building-from-source).
I found this Error. How can i fix it.
I ran into the same problem. Finally I give up using master. I just use the last release version 0.63 which does not use codegen, and it works. One more thing that I encountered but not shown on document is the hermes/DebuggerAPI.h import issue. The solution is to copy all files under node_modules/hermes-engine/android/include/hermes to node_modules/react-native/ReactCommon/hermes.
I think right now, it is better to build directly in React Native repo, rather than build in your app's repo as a dependency. Build react native, and then push the whole repo with artifacts to GitHub. Use GitHub repo's URL to install your custom react native.
Here is what I have done to build patched RN (mostly just following the wiki):
git clone https://github.com/facebook/react-native
cd react-native
git checkout v0.64.1 # or any other release
# now make changes to the code
# build android artifacts
docker run --rm --name rn-build -v $PWD:/pwd -w /pwd reactnativecommunity/react-native-android /bin/sh -c "./gradlew installArchives --no-daemon"
Note: if the gradle daemon unexpectedly disappears, try minimize the max ram usage in the root gradle.properties:
org.gradle.jvmargs=-Xmx1024m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
and check ./gradlew is invoked with --no-daemon; this may help a bit.
After the build succeeds, include build artifacts android in the git:
git add android --force
git commit -m 'Release for some patches'
git checkout -b release-fix-something
git remote set-url origin https://github.com/myusername/react-native
git push origin release-fix-something:master
In your app's repo, install react-native by your fork:
yarn add https://github.com/myusername/react-native.git
after installing the npm install -g expo/cli.. i am trying to use expo init my-app but it was throwing the error Please upgrade to kleur#3 or migrate to 'ansi-colors' if you prefer the old syntax.
As I can see from the stack trace, you've got an ENOGIT error.
No git binary found in $PATH.
For some reasons expo needs git to initialize the project. And it tries to install react-native-maps from the git repository (not from npm).
This means you need to install git on your machine. For Windows, there is a method described here.
And your warning about the kleur is just a warning and you can simply ignore it and it is not your problem.
i was trying to run vuejs documentation offline (locally) and had no lack, it worked in the past but i don't know what i have done wrong.
i followed the steps on the following post
hear
basically the steps are
install hexo-cli globally
npm install hexo-cli --global
clone vuejs.org repository
git clone https://github.com/vuejs/vuejs.org.git
install project dependencies
cd vuejs.org && npm install
run local server using npm or hexo
npm start
i keep gett
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: watch /vuejs.org/themes/vue/layout/icons/ltc.ejs ENOSPC
at _errnoException (util.js:1022:11)
at FSWatcher.start (fs.js:1374:19)
at Object.fs.watch (fs.js:1400:11)
at createFsWatchInstance (/vuejs.org/node_modules/chokidar/lib/nodefs-handler.js:37:15)
at setFsWatchListener (/vuejs.org/node_modules/chokidar/lib/nodefs-handler.js:80:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/vuejs.org/node_modules/chokidar/lib/nodefs-handler.js:228:14)
at FSWatcher.NodeFsHandler._handleFile (/vuejs.org/node_modules/chokidar/lib/nodefs-handler.js:255:21)
at FSWatcher.<anonymous> (/vuejs.org/node_modules/chokidar/lib/nodefs-handler.js:473:21)
at FSReqWrap.oncomplete (fs.js:153:5)
You ran out of watchers. Proper solution would be to find out why that happened, however you can simply raise available amount of watchers.
fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
or remove files that are watched but aren't needed, for example some unused templates or assets.
You can find more options here:
Node.JS Error: ENOSPC
I am new to Python and Git. Found GitPython library to run Git commands using Python. I am trying to clone an already created private repository on Google Cloud to my local directory on Mac. My code is as follow:
repo = Repo.clone_from('https://source.developers.google.com/p/my-project/r/my-project--data', 'my-local-dir', no_checkout=True)
And I am getting following error:
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128) cmdline: git clone --no-checkout -v https://source.developers.google.com/p/my-project/r/my-project-data /my-local-dir stderr: 'Cloning into '/my-local-dir'... fatal: could not read Username for 'https://source.developers.google.com': Device not configured
Please help.
Thanks in advance.
I was trying to the same thing, then I discoverd pygit2, and with it I was able to clone a repository using two lines.
How? First make sure you have installed pygit2 in your python environment. I did that using the following command line:
pip install pygit2
Here the two lines I mentioned above:
import pygit2
pygit2.clone_repository("https://github.com/libgit2/pygit2", "pygit2")
When attempting to build in the core/distributed_runtime module using:
$ bazel build -c opt
//tensorflow/core/distributed_runtime/rpc:grpc_tensorflow_server
We get the following error:
ERROR: error loading package 'tensorflow/core/distributed_runtime/rpc':
Extension file not found. Unable to load package for
'//google/protobuf:protobuf.bzl': BUILD file not found on package path.
INFO: Elapsed time: 0.097s
Are there additional steps required (and not mentioned in the README.md) ?
This sounds like a git submodule issue—and it would affect building any part of TensorFlow from source. To recover, run the following command in your git repository:
$ git submodule update --init --recursive
(There are many other ways to do the same thing: see this question for some suggestions.)