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

react native events module not found #1058

Closed
iceNuts opened this issue Apr 29, 2015 · 5 comments
Closed

react native events module not found #1058

iceNuts opened this issue Apr 29, 2015 · 5 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@iceNuts
Copy link

iceNuts commented Apr 29, 2015

I am trying to follow flux example for React, but var EventEmitter = require('events').EventEmitter; can't load events module. Please help.

Thanks.

@jaygarcia
Copy link
Contributor

Call me crazy, but I think you want:

var EventEmitter = require('EventEmitter');

@brentvatne
Copy link
Collaborator

events is a node.js standard library module, @jaygarcia is right - here you would do require('EventEmitter') just like in RCTDeviceEventEmitter

@brentvatne
Copy link
Collaborator

@iceNuts - alternatively, you could include the events module from npm as I do here

@waleedarshad-vf
Copy link

events from npm working for react native. Thanks

@jsdario
Copy link
Contributor

jsdario commented Aug 10, 2016

Do I have to install EventEmitter module? It still does not find it. I tried but still I am having the same error. Maybe knowing at least that I could find some fresh information.

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants