0
This error is common in Windows, it already happened to me once I had to change manually in the versions but recent React Native were adjusted, in this case if it is not possible to update recommend that you change manually, enters the directory:
\node_modules metro-config src defaults Blacklist.js
replace the variable sharedBlacklist
var sharedBlacklist = [
/node_modules[\/\\]react[\/\\]dist[\/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.\/_tests_\/./
];
Your server is not running. Try running the command again: React-Native start If all goes well, try the command: React-Native run-android
– Emerson Vieira
I tried, but still the server won’t restart
– scxpn
I think it’s better to reinstall and configure the environment, my friend. :/
– Emerson Vieira
thanks, but here’s the screenshot of the error when running "React-Native start"
– scxpn
It seems to be a compatibility issue between your Node version and your React Native version. Try following the tips of this post: https://stackoverflow.com/questions/58117377/react-native-start-giving-invalid-regular-expression-invalid-error
– Bins
The problem is the version of Node.js, makes the downgrade to the latest stable version that should work.
– Antonio Sousa