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

TypeError:undefined is not a function (evaluating 'addListener') #3033

Closed
Hgq1001 opened this issue May 14, 2018 · 6 comments
Closed

TypeError:undefined is not a function (evaluating 'addListener') #3033

Hgq1001 opened this issue May 14, 2018 · 6 comments

Comments

@Hgq1001
Copy link

Hgq1001 commented May 14, 2018

Version

Tell us which versions you are using:

  • react-native-router-flux 4.0.0-beta.30
  • react-native 0.55.3
  • react 16.3.1
  • react-navigation 1.5.12

Expected behaviour

Let the project run properly

Actual behaviour

image

@lorcanluo
Copy link

I have the same problem.

@daviscabral
Copy link
Collaborator

Please upgrade to 4.0.0-beta.31 - a fix was added to it a few hours ago.

@JackGZY
Copy link

JackGZY commented May 14, 2018

I have the same problem,too.

@Hgq1001
Copy link
Author

Hgq1001 commented May 14, 2018

@daviscabral i have updated it to 4.0.0-beta.31,but that does not work,too!

@daviscabral
Copy link
Collaborator

daviscabral commented May 14, 2018

@Hgq1001 can you try cleaning your cache and removing all your files from node_modules?

Also, could you show me your package.json and the packager error?

To clean use these commands:

watchman watch-del-all
yarn cache clean --force
npm cache clean --force # optional - in case you also have used npm
rm -rf node_modules/
rm yarn.lock
rm package-lock.json # optional - in case you also have used npm
rm -rf $TMPDIR/metro-*
rm -rf $TMPDIR/haste-*
yarn 
yarn start --reset-cache # <-------- this is important

EDIT: Also, remove the react-navigation from your package.json - it is already required by rnrf and it's a different version.

@aksonov
Copy link
Owner

aksonov commented Jun 6, 2018

Closed due inactivity

@aksonov aksonov closed this as completed Jun 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants