React-native: Unknown named module: 'MessageQueue' regression in 0.56.0

Created on 9 Jul 2018  路  14Comments  路  Source: facebook/react-native

Environment

React Native Environment Info:
System:
OS: macOS High Sierra 10.13.5
CPU: x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
Memory: 29.36 MB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 8.11.3 - ~/.nvm/versions/node/v8.11.3/bin/node
Yarn: 1.7.0 - /usr/local/bin/yarn
npm: 5.6.0 - ~/.nvm/versions/node/v8.11.3/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
Android SDK:
Build Tools: 23.0.1, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 27.0.1, 27.0.3
API Levels: 19, 23, 25, 26, 27
IDEs:
Android Studio: 3.1 AI-173.4819257
Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
npmPackages:
@storybook/react-native: ^3.3.15 => 3.4.2
@types/react: ^16.3.16 => 16.3.16
@types/react-native: ^0.55.25 => 0.55.25
react: 16.4.1 => 16.4.1
react-native: 0.56.0 => 0.56.0

Description

After upgrading to react-native 0.56 (from the 0.55.4 version) both Android and iOS versions of the app I'm working on started to log this:

Uncaught (in promise) Error: Unknown named module: 'MessageQueue'
at metroRequire (blob:file:///a9fe7d6f-b4b7-4aa0-a31c-d6b4646490ea:64:15)
at D.k.forEach.t (file:///Applications/React%20Native%20Debugger.app/Contents/Resources/app.asar/js/RNDebuggerWorker.js:1:13455)
at Array.forEach (native)
at D (file:///Applications/React%20Native%20Debugger.app/Contents/Resources/app.asar/js/RNDebuggerWorker.js:1:13417)
at

This did not happen in the previous versions, hence this is a regression.

Reproducible Demo

Unfortunately, I'm not at liberty to publish pieces of the app, so I cannot really provide a working repo. I'm happy to answer any questions you might have to help resolve this issue.

Regression Fixed Locked

Most helpful comment

Resolved, update your react-native-debugger to new version v0.7.19

All 14 comments

same for me
and here is the project initial commits

I am hitting this problem as well in my project. I checked Denisrudov's project and saw that it shows the same error. I am at a loss for where to look next. How can I help move this issue forward?

Same error

Same here

react-native-cli: 2.0.1
react-native: 0.56.0
node: v10.5.0
npm: 6.1.0
watchman: 4.9.0
OS: macOS 10.13.5 (17F77)

devices:
physical, Huawei P10 lite, Android 7.0
physical, iPhone X, iOS 11.4.1
emulator, iPhone 6, iOS 11.4
emulator, iPhone 6s, iOS 11.4
emulator, Google Pixel 2, API 26

We are receiving this error as well, as a workaround it seems this is only an error with the standalone debugger app. If you debug instead at http://localhost:8081/debugger-ui/ in chrome or whatever you use the error does not occur. Hopefully this will be fixed soon as the standalone app is easier to work with then a browser tab but for now this is fine for us.

Having the same error..

yup got it

Same here. Is there something resolution?

+1

Same error

react-native: ^0.56
babel and stuff: 7.0.0-beta47

Resolved, update your react-native-debugger to new version v0.7.19

Please let me know if you will still have this issue with the new react-native-debugger or without it.

Yes this is fixed after updating to v0.7.19. Here's how to quickly do it on mac:

brew cask reinstall react-native-debugger
Was this page helpful?
0 / 5 - 0 ratings