Sunday, March 24, 2019

Error: Unable to resolve module `./index` from `\node_modules\react-native\scripts/.`: The module `./index` could not be found from `\node_modules\react-native\scripts/.`. Indeed, none of these files exist: #23908

Error: Unable to resolve module `./index` from `\node_modules\react-native\scripts/.`: The module `./index` could not be found from `\node_modules\react-native\scripts/.`. Indeed, none of these files exist: #23908













Solutions:

... \node_modules\@react-native-community\cli\build\commands\runAndroid\runAndroid.js 

. edit this,
. Line number 247

const procConfig = {

    // delete this line    
    cwd: scriptsDir

    // add this line
    cwd: process.cwd()
};



















Note: Close all terminal or cmd, thereafter try with new one.




Thanks :)

No comments:

Post a Comment