Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot resolve module 'react/lib/ReactMount' #45

Closed
AbrahamAlcaina opened this issue Jul 29, 2015 · 5 comments
Closed

Cannot resolve module 'react/lib/ReactMount' #45

AbrahamAlcaina opened this issue Jul 29, 2015 · 5 comments

Comments

@AbrahamAlcaina
Copy link

Hi,

Went I tried to execute the hot loader I received:

Cannot resolve module 'react/lib/ReactMount'

I use react-native 0.8.0 with issue #40 patch.

But something in the entry.js is not working.

if (module.hot) {
    var ReactNativeMount = require('ReactNativeMount');
  var HotLoaderInjection = require('react-hot-loader/Injection');
  HotLoaderInjection.RootInstanceProvider.injectProvider({
    getRootInstances: function() {
      return ReactNativeMount._instancesByContainerID;
    }
  });
  //! Terrible hack to marshall WS messages onto React Native's event loop.
  setInterval(function() {}, 200);
}

Anybody have te same issue? or any ideas?

@danscan
Copy link

danscan commented Aug 10, 2015

You have to install react (in addition to react-native) as a dev dependency as well.

@elliottsj
Copy link
Collaborator

@AbrahamAlcaina Did installing react solve your issue? Closing for now

@bairisuresh
Copy link

getting same error

@basslagter
Copy link

@bairisuresh you probably running an old version of 'react-hot-loader'. Update this module to version >= 3 and you should be fine.

@rivz-a
Copy link

rivz-a commented Dec 10, 2020

Thank you very much! This is a working option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants