relay-modern-migration-example icon indicating copy to clipboard operation
relay-modern-migration-example copied to clipboard

[meta] Collection of frequent errors and their solutions

Open marktani opened this issue 9 years ago • 0 comments
trafficstars

This is a collection of frequent errors and their solutions. This should be included in the README if we collected a few.

  • Invariant Violation error.

    • 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 watchman cache, if you're using it
    rm -rf $TMPDIR/react-*
    watchman watch-del-all
    

marktani avatar Sep 21 '16 11:09 marktani