نص الخطأ
error: Error: Unable to resolve module ./components/Header from /app/src/App.js: None of these files exist: * components/Header(.native|.android.ts|.ts|.js|.json)
error: Error: Unable to resolve module ./components/Header from /app/src/App.js: None of these files exist: * components/Header(.native|.android.ts|.ts|.js|.json)
لا يجد Metro bundler الملف أو الحزمة المستوردة. قد يكون السبب اسمًا أو مسارًا خاطئًا أو حالة الأحرف أو تثبيتًا ناقصًا.
Header تختلف عن header.npm install للحزم وتأكد أنها في package.json.npx expo start --clear.node_modules وثبّت من جديد.watchFolders في metro.config.js.npx expo start --clear npx react-native start --reset-cache rm -rf node_modules && npm install watchman watch-del-all
سمِّ الملفات بنمط أحرف موحد؛ فالفرق مهم في Linux.
المؤلف والترخيص: Nibras Code