React-native: Unable to resolve regenerator/runtime - constant error

Created on 2 May 2016  路  3Comments  路  Source: facebook/react-native

Hey there,

I used to be able to run react-native apps just fine but since I restarted my computer today I'm getting this error constantly:

screen shot 2016-05-02 at 16 54 16

It's pretty annoying since I have no idea what could be going on or what has changed. I even tried setting up a brand new react-native project but still get the same issue...
I'm on a mac and using these versions:
react-native: 0.24.1
node: v6.0.0

Any ideas??

Thanks a lot

Locked

Most helpful comment

I ran into this issue as well and found a hack to make it work for now... the issue seems to stem from react native's dependency on regenerator which is deprecating regenerator/runtime in favor of regenerator-runtime/runtime.

So all I did was npm install --save regenerator and my app is running again, though it's warning me that above is being deprecated.

It seems the issue is coming from here https://github.com/facebook/react-native/blob/master/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js#L25

All 3 comments

I ran into this issue as well and found a hack to make it work for now... the issue seems to stem from react native's dependency on regenerator which is deprecating regenerator/runtime in favor of regenerator-runtime/runtime.

So all I did was npm install --save regenerator and my app is running again, though it's warning me that above is being deprecated.

It seems the issue is coming from here https://github.com/facebook/react-native/blob/master/Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js#L25

Ah wicked @spencercarli thank you so much. I still wonder how this happened though as I literally restarted my macbook and it stopped working..

I'll close the issue for now!

Yeah it's very odd. I ran rm -rf node_modules/ && npm i just prior to everything going downhill for me.

Was this page helpful?
0 / 5 - 0 ratings