با عرض سلام و خسته نباشید خدمت دوستان
بنده یک مشکل واقعا اساسی با react native دارم ،اون هم اینکه پروژه ای که تا چند وقت پیش مشکلی نداشت و اجرا میشد الان خطای زیر را میده.
متن خطا بصورت زیر هست :
error Cannot read properties of undefined (reading 'configurations').
TypeError: Cannot read properties of undefined (reading 'configurations')
at Object.dependencyConfig (D:\aramestan\node_modules\@react-native-community\cli-platform-ios\build\config\index.js:102:37) at C:\Users\APG\AppData\Roaming\npm\node_modules\react-native\node_modules\@react-native-community\cli-config\build\loadConfig.js:57:61
at Array.reduce (<anonymous>)
at getDependencyConfig (C:\Users\APG\AppData\Roaming\npm\node_modules\react-native\node_modules\@react-native-community\cli-config\build\loadConfig.js:54:51)
at Object.get @react-native-community/async-storage [as @react-native-community/async-storage] (C:\Users\APG\AppData\Roaming\npm\node_modules\react-native\node_modules\@react-native-community\cli-config\build\loadConfig.js:122:18)
at warnAboutManuallyLinkedLibs (D:\aramestan\node_modules\@react-native-community\cli-platform-android\build\link\warnAboutManuallyLinkedLibs.js:39:43)
at displayWarnings (D:\aramestan\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:82:44)
at Object.runAndroid [as func] (D:\aramestan\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:97:3)
at Command.handleAction (C:\Users\APG\AppData\Roaming\npm\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:192:23)
at Command.listener (C:\Users\APG\AppData\Roaming\npm\node_modules\react-native\node_modules\commander\index.js:315:8)
info Run CLI with --verbose flag for more details.
دلیل این خطا چی می تونه باشه؟
با استفاده از دستور react-native init پروژه جدید ایجاد کردم متاسفانه اون هم خطای بالا را داد.
پوشه node-modules موجود در پروژه را پاک کردم و مجدد با npm i نصب کردم.
با استفاده از دستور react-native init پروژه جدید ایجاد کردم درضمن nodejs ، react native را هم بروز رسانی کردم ولی باز مشکل حل نشد.
جالب اینجاست پروژه های قبلی که درست بودن و بدون مشکل build کردم خروجی گرفتم آنها هم اجرا نشدن همون خطا را دادن.
واقعا نمی دانم چیکار کنم، هرکاری که بذهنم میرسید را انجام دادم ولی مشکل حل نشد.
لطفا بنده را راهنمایی کنید.
هیچ کاربری تا کنون از این پست تشکر نکرده است
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)