question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to resolve module `RCTDeviceEventEmitter`

See original GitHub issue

bundling failed: Error: Unable to resolve module RCTDeviceEventEmitter

my code is import RCTDeviceEventEmitter from “RCTDeviceEventEmitter”;

React Native 0.60.5 is ok ,but i upgrade 0.61.0 get error,and i import dismissKeyboard get the same error. please tell me why,and what should I do. thanks so mush.

React Native version:

"react-native": "^0.61.0"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Naturalclarcommented, Dec 28, 2019

@AllenCai1991 I was able to work around by importing directry from the file in RN 0.61.5

import RCTDeviceEventEmitter from 'react-native/Libraries/EventEmitter/RCTDeviceEventEmitter';
0reactions
stale[bot]commented, May 2, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module 'RCTDeviceEventEmitter' from 'react ...
I have this simple class, with a method that just takes an event and calls DeviceEventEmitter , and then returns:
Read more >
unable to resolve module deprecated-react-native-prop-types
So far I have been unable to resolve this error, and I have the most recent version of the fiction-expo-restart library. How can...
Read more >
Android Native Modules
Similar to callbacks, a native module method can either reject or resolve a promise (but not both) and can do so at most...
Read more >
[Solved]-React Native & iOS : Invariant Violation: Module ...
... Violation: Module RCTDeviceEventEmitter is not a registered callable module (calling ... can't find ios framework headers in react native module library ...
Read more >
Native Modules · React Native for Windows + macOS
By default, the name visible to JavaScript is the same as the class name, and the default event emitter is RCTDeviceEventEmitter . You...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found