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
Unable to resolve module react-native/Libraries/EventEmitter/EventEmitter
#386
Comments
Looks like EventEmitter.js was removed from the EventEmitter library as of RN 0.48. This seems to be the fix - in
to
|
Yeah very annoying! That fix will work as a temp workaround in v2 however we can't apply that as it wont be backwards compatible. v3 addresses this when it's released! |
I'm reproducing the same error on bundling/running on simulator. Since RN upgrade to 0.48.1 |
I'm not seeing this with @jerolimov's PR, but I'm only testing on iOS. |
@Salakar What do you want to do about this? @SoldierCorp This is a different issue, there's plenty of these in the issues. |
+1 to 2.2 branch for RN 0.48+ |
+1 |
Will release a version in the next hour or so with this patched to support 48 and previous versions, the PR above would break <48 |
v2.2.0 is up. |
EventEmitter removed from RN in .48. Updated to new location. Reference: invertase/react-native-firebase#386
i did
|
@sameesiddiqui @jerolimov @lovince I am still getting this error with the fix in. This is the error:
Does anyone know a solution? I can't get the application running using
I found this thread on Reddit -- is this true? Didn't see it in the docs that it doesn't work with expo web emulator |
I have no idea how react-native-firebase (heavy emphasis on the native) would work on the web. We have plans to bridge the APIs such that it works on react-native-web (the underlying technology of Expo Web...) by delegating to the firebase-js-sdk in that case but no work has begun there. It is not going to work. You must do native builds and run on either android or ios as far as I know |
Issue
Updated my project to RN 0.48.1 and React 16.0.0-alpha.12. The project compiles properly and but now getting red screen of death in the iOS Simulator - both from Xcode and with RN CLI - with the following error message:
Bundling
index.ios.js
[development, non-minified, hmr disabled] 98.5% (766/772), failed.error: bundling failed: "Unable to resolve module
react-native/Libraries/EventEmitter/EventEmitter
from/Volumes/VLO/apps/focoapp/app/node_modules/react-native-firebase/lib/modules/base.js
: Module does not exist in the module mapThis might be related to facebook/react-native#4968
To resolve try the following:
watchman watch-del-all
.node_modules
folder:rm -rf node_modules && npm install
.rm -fr $TMPDIR/react-*
ornpm start -- --reset-cache
."Environment
The text was updated successfully, but these errors were encountered: