React native does not work

1

I have a problem with native react, I create new projects and it does not let me run them. The error occurs directly, I only create the project and immediately execute it. The red screen appears with the following error:

  

Failed ot load bundle ( link ) with error: (/ Users /React/Documents/nativeapps/CPH/index.js: invalid value for dynamic deps behavior: 'null' (null))

I completely ignore that this error is generated, it is a new project, I only do:

react-native init proyecto
react-native run-ios --simulator "iPhone 5s" 

and it just shows me the error, I do not change anything in code at all. It's as if native react no longer works.

I am using react-native: 0.52.0 and react-native-cli: 2.0.1

    
asked by Sergio García 19.01.2018 в 19:34
source

1 answer

3

The error has occurred due to a bug in the latest version of the subway, as indicated in this Github thread (my translation):

  

Sorry guys, this has been caused because we added a new configuration parameter to allow dynamic calls. BUT that new parameter is not handled in RN v0.52 and causes meter to fail.

     

I will publish version v0.24.6 to fix it as soon as possible

Then the solution to the problem is to update metro to the most modern version. Something you can do using the following command ( as specified in SO in English ):

npm install metro
    
answered by 19.01.2018 / 20:35
source