Project execution error in React Native on Windows

Asked

Viewed 98 times

0

inserir a descrição da imagem aqui**inserir a descrição da imagem aqui**I’d like to know why and how to fix that mistake.

  • 1

    Your server is not running. Try running the command again: React-Native start If all goes well, try the command: React-Native run-android

  • I tried, but still the server won’t restart

  • I think it’s better to reinstall and configure the environment, my friend. :/

  • thanks, but here’s the screenshot of the error when running "React-Native start"

  • 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

  • The problem is the version of Node.js, makes the downgrade to the latest stable version that should work.

Show 1 more comment

1 answer

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_\/./
];

Browser other questions tagged

You are not signed in. Login or sign up in order to post.