← All fixes
Expo / Metro: Unable to resolve module
#176Error
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 yet0 worked0 didn't
Tried it yourself?
Related fixes
Next.js: Module not found: Can't resolve 'fs'
#112Module not found: Can't resolve 'fs'
nextjsNo reports yet
npm install fails with ERESOLVE unable to resolve dependency tree (peer dependency conflict)
#36npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error Could not resolve dependency: peer react@"^18.3.1" from react-dom@18.3.1
Named export not found: the requested module is a CommonJS module
#27SyntaxError: Named export 'greet' not found. The requested module './lib.cjs' is a CommonJS module, which may not support all module.exports as named exports.
nodeVerifiedNo reports yet