Skip to content

Add cache clearing instructions to FAQ / troubleshooting #369

Description

@MatthysDev

When encountering the Failed to serialize JavaScript object error, clearing Metro cache often resolves the issue. It would be helpful to add a recommended cache-clearing command to the FAQ section:

watchman watch-del-all 2>/dev/null; rm -rf node_modules/.cache
&& npx expo start --clear

This clears:

  • Watchman file watcher cache
  • node_modules/.cache (Babel, bundler caches)
  • Expo's internal cache (--clear flag)

In our case, the serialization error was entirely caused by stale cache and this command fixed it immediately after hours of debugging 🙏

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions