relay-modern-migration-example
relay-modern-migration-example copied to clipboard
[meta] Collection of frequent errors and their solutions
trafficstars
This is a collection of frequent errors and their solutions. This should be included in the README if we collected a few.
-
Invariant Violationerror.- rebuild the project
Usually when you changed your data schema (added models or fields) you’ll need to rebuild the project. The reason is that it needs to pull in the new data schema at compile time. The hot module reloading wouldn’t handle that.
- clear cache
rm -rf node_modules- clear
watchmancache, if you're using it
rm -rf $TMPDIR/react-* watchman watch-del-all