Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Bugs Encountered

Benoît Jeaurond edited this page Mar 31, 2019 · 5 revisions

React-Native

  1. If ever you receive an error similar to this when trying to run the application (aka react-native start or react-native run-android)
Error: ENOSPC: System limit for number of file watchers reached, watch '/home/ben/code/Kalend/android/app/build/generated/res'
    at FSWatcher.start (internal/fs/watchers.js:165:26)
    at Object.watch (fs.js:1254:11)
    at NodeWatcher.watchdir (/home/ben/code/Kalend/node_modules/sane/src/node_watcher.js:175:20)
    at NodeWatcher.<anonymous> (/home/ben/code/Kalend/node_modules/sane/src/node_watcher.js:310:16)
    at /home/ben/code/Kalend/node_modules/graceful-fs/polyfills.js:285:20
    at FSReqWrap.oncomplete (fs.js:155:5)

All you need to do is run this command

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
  1. If you have an error with DEVELOPER ERROR in red when signing in with Google, your system must have the same keystore file as the debug one located on the github.

If Jest testing isn't working, do these steps:

  1. npm i -D babel-core@bridge

  2. Change .babelrc to babel.config.js

  3. Overwrite the babel.config.js content with this:

module.exports = {
	presets: ['module:metro-react-native-babel-preset']
};

Clone this wiki locally