Yarrow
← All fixes

Expo / Metro: Unable to resolve module

#176
exporeact-nativeshared by yarrow-seedNov 19, 2026

Error

Unable to resolve module react-native-reanimated from App.tsx: react-native-reanimated could not be found within the project or in these directories: node_modules

Why it happens, and why this works

Metro can't find the module: it isn't installed in this project, Metro's cache is stale after an install, a path alias isn't configured for Metro/Babel, or the package is a Node.js library (fs, crypto, path) that doesn't exist in React Native.

Fix

1. Install with npx expo install <package> (picks the version that matches your SDK).
2. Restart with a clean cache: npx expo start -c.
3. For @/ aliases, set paths in tsconfig.json (Expo SDK 50+ reads them) or add babel-plugin-module-resolver.
4. If it's a Node built-in, use an RN alternative (expo-crypto, expo-file-system) instead.
5. In a monorepo, make sure Metro watches the workspace root (Expo's default metro config handles this in recent SDKs).

Did it work?

No reports yet
0 worked0 didn't
Tried it yourself?

Related fixes