请提供所要求的所有信息。 不遵循此格式的问题可能会停滞。
请提供清楚简明的错误描述。 如果需要,包括屏幕截图。
请使用最新的 React Native 版本进行测试,以确保您的问题尚未得到解决: https :
npx react-native info
info Fetching system and libraries information...
System:
OS: macOS 10.15.4
CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
Memory: 43.02 MB / 32.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 14.1.0 - /usr/local/bin/node
Yarn: 1.10.1 - /usr/local/bin/yarn
npm: 6.14.4 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 26, 27, 28, 29
Build Tools: 26.0.2, 27.0.3, 28.0.3, 29.0.1, 29.0.2
System Images: android-23 | Google APIs Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google Play Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 3.6 AI-192.7142.36.36.6392135
Xcode: 11.4.1/11E503a - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_211 - /usr/bin/javac
Python: 2.7.17 - /usr/local/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.2 => 0.62.2
npmGlobalPackages:
*react-native*: Not Found
提供重现问题的步骤的详细列表。
npx react-native init Blah --template react-native-template-typescript
npx react-native start
npx react-native run-android
Error: Unable to resolve module `./debugger-ui/debuggerWorker.cff11639.js` from ``:
None of these files exist:
* debugger-ui/debuggerWorker.cff11639.js(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
* debugger-ui/debuggerWorker.cff11639.js/index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
at ModuleResolver.resolveDependency (/Users/scott.pierce/workspace/test/example/example-react-native/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:163:15)
at ResolutionRequest.resolveDependency (/Users/scott.pierce/workspace/test/example/example-react-native/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18)
at DependencyGraph.resolveDependency (/Users/scott.pierce/workspace/test/example/example-react-native/node_modules/metro/src/node-haste/DependencyGraph.js:287:16)
at /Users/scott.pierce/workspace/test/example/example-react-native/node_modules/metro/src/lib/transformHelpers.js:267:42
at Server.<anonymous> (/Users/scott.pierce/workspace/test/example/example-react-native/node_modules/metro/src/Server.js:841:41)
at Generator.next (<anonymous>)
at asyncGeneratorStep (/Users/scott.pierce/workspace/test/example/example-react-native/node_modules/metro/src/Server.js:99:24)
at _next (/Users/scott.pierce/workspace/test/example/example-react-native/node_modules/metro/src/Server.js:119:9)
我不会得到这个错误。
在调试模式下运行时,我也遇到了同样的问题。
同样的问题 "react-native": "0.62.2",
同样的问题 "react-native": "0.62.2",
相同的
同样的问题。
我的反应版本:
“反应”:“16.11.0”,
“反应原生”:“0.62.2”
任何解决方案?
我相信这是react-native-config
的东西。 我在这里有同样的问题:
"react": "16.11.0",
"react-native": "0.62.2",
"react-native-config": "^1.2.0",
@jmlavoier我有同样的问题,但不要使用react-native-config
。
"react": "16.11.0",
"react-native": "0.62.2",
同样的问题 "react-native": "0.62.2",
相同的
https://reactnavigation.org/docs/troubleshooting/#app -is-not-working-properly-when-connected-to-chrome-debugger
我有同样的问题:
"react": "16.11.0",
"react-native": "0.62.2",
@imamrobani感谢您的链接。 但它没有解决问题?
该问题很可能与 Chrome 相关。 但它在 React-Native 的早期版本中并不存在。
同样在这里,奇怪的是它今晚停止工作。
至少在 Android 设备中,不允许使用 onPress 按下 TouchableOpacity 组件。 它似乎是第一次工作,我的应用程序的一些交互工作一次,但随后停止工作。
❯ react-native info
info Fetching system and libraries information...
System:
OS: macOS 10.15.3
CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
Memory: 17.99 MB / 8.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 13.7.0 - ~/.nvm/versions/node/v13.7.0/bin/node
Yarn: 1.21.1 - /usr/local/bin/yarn
npm: 6.13.6 - ~/.nvm/versions/node/v13.7.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
Android SDK:
API Levels: 27, 28
Build Tools: 27.0.3, 28.0.3
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_231 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.2 => 0.62.2
npmGlobalPackages:
*react-native*: Not Found
我从我的设备上完全卸载了该应用程序,它恢复正常工作,没有出现错误 🤔(Android 设备)
@imamrobani感谢您的链接。 但它没有解决问题?
该问题很可能与 Chrome 相关。 但它在 React-Native 的早期版本中并不存在。
在我的情况下,我使用
“反应”:“16.11.0”,
“反应原生”:“0.62.2”,
“反应导航”:“^ 4.0.10”
问题是当我在调试模式下使用实际设备时,我的应用程序无法导航到另一个屏幕。 但如果使用模拟器运行良好。
有谁知道问题出在哪里?
以前我用 react native 0.61 就好了
每次我从 bash 调试切换到 chrome 时都会发生这种情况,同时它在 Metro bundler 中显示日志,我在 rn 菜单中单击debug
编辑:
它基本上迫使我们使用 Metro bundler而不是 chrome 来调试。
当我将应用程序从菜单设置为调试模式时,当 javascript 日志进入浏览器控制台时,我收到此错误
Error: Unable to resolve module `./debugger-ui/debuggerWorker.cff11639.js` from ``:
None of these files exist:
* debugger-ui/debuggerWorker.cff11639.js(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
* debugger-ui/debuggerWorker.cff11639.js/index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
at ModuleResolver.resolveDependency (/Users/henriquederosa/dev/myapp/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:163:15)
at ResolutionRequest.resolveDependency (/Users/henriquederosa/dev/myapp/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18)
at DependencyGraph.resolveDependency (/Users/henriquederosa/dev/myapp/node_modules/metro/src/node-haste/DependencyGraph.js:287:16)
at /Users/henriquederosa/dev/myapp/node_modules/metro/src/lib/transformHelpers.js:267:42
at Server.<anonymous> (/Users/henriquederosa/dev/myapp/node_modules/metro/src/Server.js:841:41)
at Generator.next (<anonymous>)
at asyncGeneratorStep (/Users/henriquederosa/dev/myapp/node_modules/metro/src/Server.js:99:24)
at _next (/Users/henriquederosa/dev/myapp/node_modules/metro/src/Server.js:119:9
每次我从 bash 调试切换到 chrome 时都会发生这种情况,同时它在 Metro bundler 中显示日志,我在 rn 菜单中单击
debug
编辑:
它基本上迫使我们使用 Metro bundler而不是 chrome 来调试。
当我将应用程序从菜单设置为调试模式时,当 javascript 日志进入浏览器控制台时,我收到此错误Error: Unable to resolve module `./debugger-ui/debuggerWorker.cff11639.js` from ``: None of these files exist: * debugger-ui/debuggerWorker.cff11639.js(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx) * debugger-ui/debuggerWorker.cff11639.js/index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx) at ModuleResolver.resolveDependency (/Users/henriquederosa/dev/myapp/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:163:15) at ResolutionRequest.resolveDependency (/Users/henriquederosa/dev/myapp/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18) at DependencyGraph.resolveDependency (/Users/henriquederosa/dev/myapp/node_modules/metro/src/node-haste/DependencyGraph.js:287:16) at /Users/henriquederosa/dev/myapp/node_modules/metro/src/lib/transformHelpers.js:267:42 at Server.<anonymous> (/Users/henriquederosa/dev/myapp/node_modules/metro/src/Server.js:841:41) at Generator.next (<anonymous>) at asyncGeneratorStep (/Users/henriquederosa/dev/myapp/node_modules/metro/src/Server.js:99:24) at _next (/Users/henriquederosa/dev/myapp/node_modules/metro/src/Server.js:119:9
是的,就是这样,我卸载重装了,调试模式还是一样
同样在这里,奇怪的是它今晚停止工作。
至少在 Android 设备中,不允许使用 onPress 按下 TouchableOpacity 组件。 它似乎是第一次工作,我的应用程序的一些交互工作一次,但随后停止工作。 ``嗨@HenriqueDerosa ,你能检查一下这个问题吗 - 它与调试时在 Android 设备上发生的情况类似吗?
https://github.com/facebook/react-native/issues/29083#issuecomment -642457919
大家好,我遇到了这个问题,对我有用的只是清除我的 Google Chrome 缓存。
“有效”是指我的模拟器没有出现红色错误屏幕,我可以继续正常开发。
任何解决方案? 我无法调试应用程序。 断点未命中
有什么解决办法吗? 即使您创建了一个新项目,它似乎也会发生在 React Native 0.62.2 上。 出于某种原因,当您查看调试器时会出现错误 500。
有什么解决办法吗? 即使您创建了一个新项目,它似乎也会发生在 React Native 0.62.2 上。 出于某种原因,当您查看调试器时会出现错误 500。
跳过就行了,只要不引起应用程序错误都无所谓
发生这种情况时,我无法再在文本字段中输入文本,因为键盘没有出现。 调试器变得不可用,无法登录应用程序。
发生这种情况时,我无法再在文本字段中输入文本,因为键盘没有出现。 调试器变得不可用,无法登录应用程序。
在模拟器上试试
发生这种情况时,我无法再在文本字段中输入文本,因为键盘没有出现。 调试器变得不可用,无法登录应用程序。
在模拟器上试试
在模拟器上它正在工作,但错误仍然在捆绑器中抛出。 为什么它只影响设备调试?
发生这种情况时,我无法再在文本字段中输入文本,因为键盘没有出现。 调试器变得不可用,无法登录应用程序。
在模拟器上试试
在模拟器上它正在工作,但错误仍然在捆绑器中抛出。 为什么它只影响设备调试?
当我使用实际设备(Android 9)时它不工作,然后我将设备更改为 android 9,在我的情况下我使用 Android 6 它正在工作
发生这种情况时,我无法再在文本字段中输入文本,因为键盘没有出现。 调试器变得不可用,无法登录应用程序。
在模拟器上试试
在模拟器上它正在工作,但错误仍然在捆绑器中抛出。 为什么它只影响设备调试?
当我使用实际设备(Android 9)时它不工作,然后我将设备更改为 android 9,在我的情况下我使用 Android 6 它正在工作
您的意思是将模拟设备更改为 android 6 API 或使用旧设备进行调试? 然而,这不应该发生,调试器也应该在较新的设备上工作......
通过在 Chrome 中硬刷新(shift + 刷新)React 调试器选项卡,然后在检查器中清除应用程序数据,然后最后在 bash 中重新启动主捆绑线程(npm start)来为我解决
同样的问题在这里。 一旦激活调试模式,应用程序似乎就会停止注册所有onPress()
事件。 滚动仍然是可能的。
该问题不会发生在模拟器中。 但是,控制台和终端(反应服务器)中仍然显示相同的错误。
react-native -v
返回
react-native-cli: 2.0.1
react-native: 0.62.2
我也一直有这个问题。 寻找答案的高低。
出于某种原因,禁用我的广告拦截器给了我更多的控制台反馈。
然后我注意到 chrome 正在调试主线程。 容易忽视。
单击 debuggerWorker 线程后,应用程序开始注册并命中断点...
我希望这可以帮助你们中的一些人👍
“反应”:“16.11.0”,
“反应原生”:“0.62.2”,
我有同样的问题:
谢谢@HenriqueDerosa - 完全卸载并重新安装 Expo 应用程序也对我
有趣的是,我刚刚从 SDK 36 升级到 38,并且也升级了 expo-cli。 因此,可能同时转换两者存在问题。 另外我相信我的配置文件在上次安装应用程序时默认自动启用了远程调试。 如果一开始禁用它,然后再启用它,也许它不会引起问题? 不管怎样,谢谢你的提示!
过去一周同样的问题。 无法发展。 令人难以置信的令人沮丧。 这应该被进行升级的团队抓住。
“反应”:“~16.11.0”,
"react-dom": "~16.11.0",
"react-native": " https://github.com/expo/react-native/archive/sdk-38.0.1.tar.gz ",
同样在这里,我的模拟器自动刷新
对我来说:react-native-meteor 问题——确切地说,“eventemitter3”节点模块已经删除了 setMaxListeners
任何新闻? 我遇到了同样的问题
我在真正的 iOS 设备上使用 Chrome 调试器,看来我可以通过禁用我的所有 Chrome 扩展来修复......其中一个肯定是干扰了。 调试时我不再看到错误或触摸无响应
@chadwhittaker事实上,从 Chrome 中删除 Redux 工具使触摸再次工作。 它可能与该扩展名有关。
有没有人找到解决方案? 这太荒谬了.... 尝试了一切,但仍然在这里
解决方案是制作机器的日期和时间(在 iOS 的情况下)和模拟器(在 Android 的情况下)。 我遇到了同样的错误,在控制台中显示**Debugger and device times have drifted by more than 60s. Please correct this by running adb shell "date
date +%m%d%H%M%Y.%S " on your debugger machine.**
更新模拟器的日期和时间后,它就可以工作了。
@zenkhas是的,至少对我而言,即使在不调整日期和时间的情况下,它在模拟器上也能正常运行,但在某些情况下,将物理设备用于开发目的至关重要。
到目前为止,我已经尝试干预节点模块,删除所有类型的缓存(包括浏览器的...每个浏览器的 tbh,因此我们可以排除特定于浏览器的问题),调整日期和时间,排除可能的浏览器可能会干扰调试过程、交换调试器线程等的扩展......:/
仅供参考,我使用 Windows 10 和 Chrome(Android 开发 v0.62.2)
嘿伙计们我在这里也一样
React Native 版本不匹配。
JavaScript 版本:0.63.0
原生版本:0.62.2确保您已重建本机代码。 如果问题仍然存在,请尝试使用
watchman watch-del-all && react-native start --reset-cache
清除 Watchman 和打包程序缓存。
其次是世博会
错误
00:18
错误:无法从``解析模块./debugger-ui/debuggerWorker.cff11639.js
:
无法在 android 模拟器上运行调试器。
任何人都有运气。 我也使用 Windows 10 和 Chrome。
回到我之前的帖子。 经过 2 周的搜索,我找到了有关在远程调试器处于活动状态时丢失的onPress()
事件的解决方案。 这是因为我的手机和笔记本电脑之间存在几秒钟的时间差异。 在我的手机上禁用自动禁用自动时间解析并手动将手机上的时间设置为一分钟为我解决了这个问题。
指向正确方向的学分: https :
但是在激活远程调试器时,相同的Error: Unable to resolve module
仍然存在。 这导致手机在代码中保存更改后无法自动刷新。 第一次更新后,您会在手机上收到Refreshing...
消息。 刷新不会发生,控制台中没有打印额外的错误/警告。 以下更新后,该消息不再打印在手机上。 但是,我打印了控制台日志。
奇怪的是,我的同事有几乎相同的 Arch Linux + ThinkPad 设置。 在他的设备上不会出现问题。 我们花了很多时间试图定位问题,但没有结果。 所以,现在我只是在调试器激活后每次保存后从终端手动重新加载应用程序。 这当然会对生产力产生严重影响。
$ react-native --version
4.8.0
(用yarn安装,也试过npm)
通过在 Chrome 中硬刷新(shift + 刷新)React 调试器选项卡,然后在检查器中清除应用程序数据,最后在 bash 中重新启动主捆绑线程(npm start)来为我解决
很简单的答案...
有没有人找到解决方案? 这太荒谬了.... 尝试了一切,但仍然在这里
通过在 Chrome 中硬刷新(shift + 刷新)React 调试器选项卡,然后在检查器中清除应用程序数据,最后在 bash 中重新启动主捆绑线程(npm start)来为我解决
有没有人找到解决方案? 这太荒谬了.... 尝试了一切,但仍然在这里
通过在 Chrome 中硬刷新(shift + 刷新)React 调试器选项卡,然后在检查器中清除应用程序数据,最后在 bash 中重新启动主捆绑线程(npm start)来为我解决
这个试过很多次了。 不为我解决。
在这个窗口中 SHIFT+F5 可以吗?
我解决了我的问题:
在 package.json 中
"resolutions": {
"@react-native-community/cli-debugger-ui": "4.7.0"
}
删除 yarn.lock 并运行 yarn install。
从RN v0.61.4
到RN v0.63.1
。
我做了以下步骤:
watchman watch-del-all; rm -rf $TMPDIR/metro-*; rm -rf $TMPDIR/haste-map-*;
rm yarn.lock; rm -rf node_modules; yarn;
resolutions
到 package.json:"resolutions": {
"@react-native-community/cli-debugger-ui": "4.7.0"
}
之后,我在模拟器中执行了项目,一切正常。 ✨
同样的问题。
同样的问题
react-native 0.63.1 仍然存在这个问题
同样的问题
编辑:我停止了世博客户端的远程调试,它工作正常
我在以下版本中遇到了同样的问题
“反应”:“16.11.0”,
“反应原生”:“0.62.2”,
下面的步骤为我工作
尝试这个:
对我来说类似的问题。 我看到这个在react-native
控制台窗口,当我在Chrome标签页打开开发者控制台包含调试器UI的http://本地主机:8081 /调试器的UI /选择后Debug
在中- 物理 Android 设备上的应用程序开发人员菜单:
info Launching Dev Tools...
Error: Unable to resolve module `./debugger-ui/ui.bcd3f9d1.js` from ``:
None of these files exist:
* debugger-ui\ui.bcd3f9d1.js(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
* debugger-ui\ui.bcd3f9d1.js\index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
at ModuleResolver.resolveDependency (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:163:15)
at ResolutionRequest.resolveDependency (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18)
at DependencyGraph.resolveDependency (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\node-haste\DependencyGraph.js:287:16)
at C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\lib\transformHelpers.js:267:42
at Server.<anonymous> (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\Server.js:841:41)
at Generator.next (<anonymous>)
at asyncGeneratorStep (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\Server.js:99:24)
at _next (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\Server.js:119:9)
Error: Unable to resolve module `./debugger-ui/ui.7beef9ab.css` from ``:
None of these files exist:
* debugger-ui\ui.7beef9ab.css(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
* debugger-ui\ui.7beef9ab.css\index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
at ModuleResolver.resolveDependency (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:163:15)
at ResolutionRequest.resolveDependency (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18)
at DependencyGraph.resolveDependency (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\node-haste\DependencyGraph.js:287:16)
at C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\lib\transformHelpers.js:267:42
at Server.<anonymous> (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\Server.js:841:41)
at Generator.next (<anonymous>)
at asyncGeneratorStep (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\Server.js:99:24)
at _next (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\Server.js:119:9)
Error: Unable to resolve module `./debugger-ui/debuggerWorker.cff11639.js` from ``:
None of these files exist:
* debugger-ui\debuggerWorker.cff11639.js(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
* debugger-ui\debuggerWorker.cff11639.js\index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
at ModuleResolver.resolveDependency (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:163:15)
at ResolutionRequest.resolveDependency (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18)
at DependencyGraph.resolveDependency (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\node-haste\DependencyGraph.js:287:16)
at C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\lib\transformHelpers.js:267:42
at Server.<anonymous> (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\Server.js:841:41)
at Generator.next (<anonymous>)
at asyncGeneratorStep (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\Server.js:99:24)
at _next (C:\Users\Chase\company\companyMobile\projects\mobile\node_modules\metro\src\Server.js:119:9)
版本信息:
# Windows 10 64-bit
$ react-native -v
react-native-cli: 2.0.1
react-native: 0.62.2
大约两个月前,我的应用程序从 react-native 0.60.0 更新到 react-native 0.62.2。
此错误会中断在物理 Android 设备上的调试。 具体来说,在记录错误后,应用程序中的许多 UI 交互都会中断,从而导致应用程序无法使用。 但是,尽管在模拟器上发生了同样的错误,我还是能够在 Android 模拟器上进行调试。
错误:无法从``解析模块./debugger-ui/debuggerWorker.cff11639
:
这些文件都不存在:
同样的问题。 没有一个解决方案有助于解决这个问题。 但看起来这个错误并没有阻止我在 Chrome 中进行调试。 但它会杀死 VSCode 终端。
“反应”:“16.13.1”,
“反应原生”:“0.63.0”,
嘿,我刚刚用 expo-cli 开始了一个新的 expo 项目,并在 expo-cli 上尝试了远程调试。 我有同样的错误/警告消息。 而且,chrome调试控制台在代码中没有显示代码错误位置。 相反,它在构建包文件中显示了一些在实际调试中没有用的奇怪位置。 我想知道这种行为是否与这些错误有关,有没有人有过类似的经验? 为了演示,我在 app.js 中添加了一个 console.log('abc') ,这是在调试控制台中打印的内容
abc node_modules%5Cexpo%5CAppEntry.bundleplatform=android&dev=true&minify=false&hot=false
错误:
DevTools 无法加载 SourceMap:无法加载http://localhost 的内容:19001/debugger-ui/ui.bcd3f9d1.js.map:HTTP 错误:状态码 500,net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools 无法加载 SourceMap:无法加载http://localhost 的内容:19001/debugger-ui/ui.7beef9ab.css.map:HTTP 错误:状态码 500,net::ERR_HTTP_RESPONSE_CODE_FAILURE
这是我的世博诊断
Expo CLI 3.23.0 环境信息:
系统:
操作系统:Windows 10 10.0.18362
二进制文件:
节点:10.16.0 - C:\Program Files\nodejs\node.EXE
npm: 6.14.6 - C:\Program Files\nodejs\npm.CMD
IDE:
Android Studio:版本 4.0.0.0 AI-193.6911.18.40.6626763
npm 软件包:
世博会:~38.0.8 => 38.0.8
反应:~16.11.0 => 16.11.0
反应域:~16.11.0 => 16.11.0
反应原生:https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz => 0.62.2
react-native-web: ~0.11.7 => 0.11.7
请清除您的反应本机项目...
在这里也是一样,我想我们只需要忍受它..:/
在出现此错误之前,我的项目一切正常,现在,我像你们所有人一样陷入困境:思考:
我刚刚发现当我将主应用程序更改为功能组件而不是类组件时,此错误消失了。
请问如何解决这个问题? 我什至从 react native init 全新安装,但仍然遇到这个问题
我在 expo 客户端中停止了远程调试并且它起作用了,我要使用网络浏览器来修复东西
:警告: | 缺少可重现的示例 |
---|---|
:信息来源: | 您的问题似乎缺少可重现的示例。 请提供Snack或存储库,以最小、完整和可重现的方式展示您报告的问题。 |
大声笑走开愚蠢的机器人!
同样的错误(在远程调试中),我刚刚更新到 Expo 38
我有三台设备(Android 7、Android 8 和 iOS 13.3)。 他们在远程调试时都有这个错误。 我可以与 Android 8 和 iOS 上的应用程序交互,但在 Android 7 上 - 不, onPress
事件不起作用。 这似乎是 RN 问题而不是世博会。
同样的错误。 注册版本:0.63.2
在 chrome 的网络选项卡上禁用缓存会有所帮助
...但不总是。 我很确定这个问题是导致“调试加载旧版本”问题的原因,其中快速刷新会更新您的代码,但在应用程序重新加载时,您最终会得到一个旧的缓存版本。 这是一个有趣的发现....反应本机分析工具和调试工具(尤其是Android模拟器)的状态目前非常令人难过,但不幸的是我没有使用本机代码来改进它们的经验。
编辑:我想知道这是否与https://github.com/facebook/react-native/issues/29424有关? 尽管在不调试时也会发生这种情况。
同样的错误在这里。
这绝对是相对于源映射的错误。 当您尝试获取源映射的 url 时,它将转储该错误。 如果在 devtools 设置中禁用 js 和 css 的源映射,它将不会显示更多错误。 我会说它要么不产生,要么不为他们服务?
有谁知道为什么会这样? 就我而言,它发生在 Windows 中
这个问题对我来说是随机出现的,当它出现时,它不想消失。 但这对我有用。 虽然有点耗时,但从现在开始,我将这样做作为最坏的情况:
显然,如果您在模拟器上运行,则必须稍微调整过程。
我通过更正样式表中的 css 样式错误来修复此错误。
我有一个 css 样式表,其值显示如下, justifyContent 的值导致了这个错误。 更正 justifyContent 的值后,我的应用程序成功加载。
loginOrCreateTabContainer:{
flexDirection: "row",
justifyContent: "stretch",
},
将我的项目从 0.61 升级到 RN 0.63.2 后,我在 iOS 上看到了相同的问题。
我仍然看到使用react-native init
创建的全新空项目存在同样的问题。
我花了两天的大部分时间来尝试上面的每个建议的解决方案,但都没有成功。 我什至尝试了一台运行 macOS 10.15.5 的全新 MacBook,使用最新版本的所有东西设置所需的开发工具——同样的问题。
这是我的错误详细信息和 react-native 信息输出
连接调试器后,控制台中出现此错误:
Error: Unable to resolve module `./debugger-ui/debuggerWorker.cff11639` from ``:
None of these files exist:
* debugger-ui/debuggerWorker.cff11639(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
* debugger-ui/debuggerWorker.cff11639/index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
at ModuleResolver.resolveDependency (/Users/jeremy/Developer/source/MyCep-Upgrade/MyCep/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:163:15)
at ResolutionRequest.resolveDependency (/Users/jeremy/Developer/source/MyCep-Upgrade/MyCep/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18)
at DependencyGraph.resolveDependency (/Users/jeremy/Developer/source/MyCep-Upgrade/MyCep/node_modules/metro/src/node-haste/DependencyGraph.js:287:16)
at /Users/jeremy/Developer/source/MyCep-Upgrade/MyCep/node_modules/metro/src/lib/transformHelpers.js:267:42
at /Users/jeremy/Developer/source/MyCep-Upgrade/MyCep/node_modules/metro/src/Server.js:1096:37
at Generator.next (<anonymous>)
at asyncGeneratorStep (/Users/jeremy/Developer/source/MyCep-Upgrade/MyCep/node_modules/metro/src/Server.js:99:24)
at _next (/Users/jeremy/Developer/source/MyCep-Upgrade/MyCep/node_modules/metro/src/Server.js:119:9)
at process._tickCallback (internal/process/next_tick.js:68:7)
反应本机信息:
$ react-native info
info Fetching system and libraries information...
System:
OS: macOS 10.15.5
CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
Memory: 1.19 GB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.22.0 - ~/.nvm/versions/node/v10.22.0/bin/node
Yarn: Not Found
npm: 6.14.6 - ~/.nvm/versions/node/v10.22.0/bin/npm
Watchman: 4.7.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.8.4 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.6, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 20, 23, 24, 25, 26, 27, 28
Build Tools: 23.0.1, 23.0.3, 25.0.0, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 27.0.0, 27.0.1, 27.0.2, 27.0.3, 28.0.3, 29.0.0
System Images: android-24 | Google Play Intel x86 Atom, android-25 | Google APIs Intel x86 Atom, android-26 | Google Play Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5314842
Xcode: 11.6/11E708 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_131 - /usr/bin/javac
Python: 2.7.15 - /usr/local/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.63.2 => 0.63.2
npmGlobalPackages:
*react-native*: Not Found
我使用 IOS 模拟器在 macOS 10.15.6 上运行 RN 0.63.2。 我至少连续 6 个月都在为这个错误而挣扎。 这是每次我获得堆栈时对我有帮助的内容:
**1. 重启你的 Mac
提示:
希望该解决方法对某人有所帮助! GL
我使用 IOS 模拟器在 macOS 10.15.6 上运行 RN 0.63.2。 我至少连续 6 个月都在为这个错误而挣扎。 这是每次我获得堆栈时对我有帮助的内容:
1. 重启你的 mac 2. $ react-native start --reset-cache 3. 从 XCode 运行应用程序
提示:
- 一旦您错过运行“react-native start --reset-cache”并在没有它的情况下从 XCode 启动您的项目,您可能会发现“无法解析模块”,唯一可以帮助您的是神圣系统重启)
- 每次开发完成时我都会这样做:终端上的 cmd+C,模拟器上的 cmd+Q,然后在 XCode 上停止 (cmd+.),关闭 Chrome 中的调试器选项卡
希望该解决方法对某人有所帮助! GL
之后我去教堂放了一些蜡烛,画了一些五角星,然后用手鼓跳舞了2-3个小时。 :) :) :)
我通过停止使用这个调试器并开始使用 React Native 调试器应用程序来解决它。
我在android中遇到了这个问题。我尝试了上面提到的所有内容,但没有任何效果。 后来我发现我安装了一个依赖项,但没有正确配置导致问题。在我的情况下它是 react-native-firebase,因为我还没有正确配置它,所以我删除了它之后我能够在启用调试器的情况下运行应用程序。
面临同样的问题
使用“反应原生”:“0.62.2”
没有缓存重置或重启解决了这个问题
从 0.62.2 恢复到 react-native 0.23.1 为我解决了这个问题
奇怪的一个。 @HenriqueDerosa发布的解决方法对我来说效果很好(在设备上卸载并安装应用程序)
语境:
当我尝试在本地托管的应用程序上发出 GET 请求时出现此错误
try {
api.get('/projects').then(response => { //api has the baseUrl/Computer Ip
console.log("Done!");
});
} catch (error) {
console.log(error);
}
错误:
index.bundle?platfor…&minify=false:41548 Possible Unhandled Promise Rejection (id: 1):
Error: Network Error
Error: Network Error
at createError (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:99384:17)
at EventTarget.handleError (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:99288:16)
at EventTarget.dispatchEvent (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:32277:27)
at EventTarget.setReadyState (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:31367:20)
at EventTarget.__didCompleteResponse (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:31183:16)
at http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:31293:47
at RCTDeviceEventEmitter.emit (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:3537:37)
at MessageQueue.__callFunction (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2765:31)
at http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2497:17
at MessageQueue.__guard (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2719:13)
同样的问题。
React-native 版本是 0.61.5
上面的建议没有帮助
更新:
对我来说,Redux 是那个麻烦的原因,试着弄清楚是否一切都设置好了,你的商店是否有所有需要的值
安卓设备上同样的问题
Error: Unable to resolve module `./debugger-ui/ui.bcd3f9d1.js` from
: ``
我尝试了每一步,但没有任何效果。 使用android 9.0镜像调试和react-native 0.63.2
相同的
+1
该问题似乎与 Chrome 中的 React Native Debugger 有关。 我在模拟器上重新安装了Expo客户端,然后启动应用程序,问题消失了。 只是不要选择 Dubug Remote JS 选项。
https://reactnavigation.org/docs/troubleshooting/#app -is-not-working-properly-when-connected-to-chrome-debugger
大家好,我遇到了这个问题,对我有用的只是清除我的 Google Chrome 缓存。
“有效”是指我的模拟器没有出现红色错误屏幕,我可以继续正常开发。
我为我解决了。 谢谢
奇怪的一个。 @HenriqueDerosa发布的解决方法对我来说效果很好(在设备上卸载并安装应用程序)
语境:
当我尝试在本地托管的应用程序上发出 GET 请求时出现此错误try { api.get('/projects').then(response => { //api has the baseUrl/Computer Ip console.log("Done!"); }); } catch (error) { console.log(error); }
错误:
index.bundle?platfor…&minify=false:41548 Possible Unhandled Promise Rejection (id: 1): Error: Network Error Error: Network Error at createError (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:99384:17) at EventTarget.handleError (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:99288:16) at EventTarget.dispatchEvent (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:32277:27) at EventTarget.setReadyState (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:31367:20) at EventTarget.__didCompleteResponse (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:31183:16) at http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:31293:47 at RCTDeviceEventEmitter.emit (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:3537:37) at MessageQueue.__callFunction (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2765:31) at http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2497:17 at MessageQueue.__guard (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2719:13)
在模拟器上卸载对我有用
我已经通过 React Native Debug “Stop Debugging” 和 “Debug” 解决了这个问题
使 debugger-ui/EXPO-CLI 崩溃
React-native expo SDK 39
DevTools 无法加载 SourceMap:无法加载http://localhost 的内容:19001/debugger-ui/ui.bcd3f9d1.js.map:HTTP 错误:状态码 500,net::ERR_HTTP_RESPONSE_CODE_FAILURE
面临同样的问题。 安装最新版本的守望者帮助了我
https://facebook.github.io/watchman/docs/install.html
面临同样的问题。 安装最新版本的守望者帮助了我
https://facebook.github.io/watchman/docs/install.html
@vovka-s 仍然没有运气,即使我已经安装了最新版本(4.9.0)的守望者并且只运行了一个新的初始化 rn 应用程序react-native init itdidaAppCompany
macOS 10.15.7
注册护士:0.63.2
Error: Unable to resolve module `./debugger-ui/ui.bcd3f9d1.js` from ``:
None of these files exist:
* debugger-ui/ui.bcd3f9d1.js(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
* debugger-ui/ui.bcd3f9d1.js/index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
at ModuleResolver.resolveDependency (/Users/forrest/Downloads/itdidaAppCompany/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:163:15)
at ResolutionRequest.resolveDependency (/Users/forrest/Downloads/itdidaAppCompany/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18)
at DependencyGraph.resolveDependency (/Users/forrest/Downloads/itdidaAppCompany/node_modules/metro/src/node-haste/DependencyGraph.js:287:16)
at /Users/forrest/Downloads/itdidaAppCompany/node_modules/metro/src/lib/transformHelpers.js:267:42
at Server.<anonymous> (/Users/forrest/Downloads/itdidaAppCompany/node_modules/metro/src/Server.js:841:41)
at Generator.next (<anonymous>)
at asyncGeneratorStep (/Users/forrest/Downloads/itdidaAppCompany/node_modules/metro/src/Server.js:99:24)
at _next (/Users/forrest/Downloads/itdidaAppCompany/node_modules/metro/src/Server.js:119:9)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
面临同样的问题。 安装最新版本的守望者帮助了我
https://facebook.github.io/watchman/docs/install.html@vovka-s 仍然没有运气,即使我已经安装了最新版本(4.9.0)的守望者并且只运行了一个新的初始化 rn 应用程序
react-native init itdidaAppCompany
macOS 10.15.7
注册护士:0.63.2Error: Unable to resolve module `./debugger-ui/ui.bcd3f9d1.js` from ``: None of these files exist: * debugger-ui/ui.bcd3f9d1.js(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx) * debugger-ui/ui.bcd3f9d1.js/index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx) at ModuleResolver.resolveDependency (/Users/forrest/Downloads/itdidaAppCompany/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:163:15) at ResolutionRequest.resolveDependency (/Users/forrest/Downloads/itdidaAppCompany/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18) at DependencyGraph.resolveDependency (/Users/forrest/Downloads/itdidaAppCompany/node_modules/metro/src/node-haste/DependencyGraph.js:287:16) at /Users/forrest/Downloads/itdidaAppCompany/node_modules/metro/src/lib/transformHelpers.js:267:42 at Server.<anonymous> (/Users/forrest/Downloads/itdidaAppCompany/node_modules/metro/src/Server.js:841:41) at Generator.next (<anonymous>) at asyncGeneratorStep (/Users/forrest/Downloads/itdidaAppCompany/node_modules/metro/src/Server.js:99:24) at _next (/Users/forrest/Downloads/itdidaAppCompany/node_modules/metro/src/Server.js:119:9) at processTicksAndRejections (internal/process/task_queues.js:93:5)
我正在使用 Windows 10 && react-native:最新
同样的问题也发生在我身上。 即使安装了 watchman,@react-native-community/cli-debugger-ui 和 react-devtools-core。
没有任何效果
我建议使用这个,用于调试
https://github.com/jhen0409/react-native-debugger
我正在使用 expo 并升级到 sdk-38.0.2,这使我无法使用远程调试。 我的应用程序将加载登录页面,但所有按钮和输入都将无响应。 但是在多次单击按钮后,该按钮最终会起作用。 禁用远程调试时,该应用程序运行良好。 不得不回到 expo 的 react native sdk-36.0.1 和 expo 36.0.2。
不工作
包.json
"博览会": "^38.0.0",
"react-native": " https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz ",
包-lock.json
世博会:38.0.10
在职的
包.json
"博览会": "^36.0.0",
"react-native": " https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz ",
包-lock.json
世博会:36.0.2
package.json 不工作
```{
"main": "node_modules/expo/AppEntry.js",
“脚本”:{
"start": "展会开始",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "博览会弹出",
"lint": "eslint .-c .eslintrc.js --ext .js",
"流": "流",
"publish-updates": "expo publish",
"build-android-apk": "expo build:android -t apk",
"build-android-aab": "expo build:android -t app-bundle",
"build-ios": "expo build:ios "
},
“依赖关系”:{
"@expo/vector-icons": "^10.0.0",
"@react-native-community/masked-view": "0.1.10",
"@react-navigation/drawer": "^5.0.0",
"@react-navigation/native": "^5.0.0",
"@react-navigation/stack": "^5.0.0",
"博览会": "^38.0.0",
"expo-linear-gradient": "~8.2.1",
"博览会通知": "~0.3.3",
"展览权限": "~9.0.1",
"lodash": "^4.17.20",
"时刻": "^2.24.0",
"道具类型": "^15.7.2",
“反应”:“16.11.0”,
"react-dom": "16.11.0",
"react-native": " https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz ",
"react-native-gesture-handler": "~1.6.0",
"react-native-keyboard-aware-scroll-view": "^0.9.2",
"react-native-reanimated": "~1.9.0",
"react-native-safe-area-context": "~3.0.7",
"react-native-screens": "~2.9.0",
"react-native-web": "~0.11.7",
“反应导航”:“^3.11.1”,
"react-navigation-header-buttons": "^3.0.1",
"react-redux": "^7.1.0",
"redux": "^4.0.4",
"redux-thunk": "^2.3.0"
},
“开发依赖”:{
"babel-eslint": "^10.1.0",
"babel-preset-expo": "^8.2.3",
"eslint": "^7.10.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-extra-rules": "0.0.0-development",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.21.2",
"eslint-plugin-react-native": "^3.9.1",
"eslint-plugin-sort-class-members": "^1.8.0",
"eslint-plugin-unused-imports": "^0.1.3",
“流量”:“^0.2.3”,
"flow-bin": "^0.134.0",
"更漂亮": "^2.1.2",
“redux-devtools-extension”:“^2.13.8”
},
“私人”:真的
}
package.json Working
```{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject",
"lint": "eslint . -c .eslintrc.js --ext .js",
"flow": "flow",
"publish-updates": "expo publish",
"build-android-apk": "expo build:android -t apk",
"build-android-aab": "expo build:android -t app-bundle",
"build-ios": "expo build:ios"
},
"dependencies": {
"@expo/vector-icons": "^10.2.1",
"@react-native-community/masked-view": "0.1.5",
"@react-navigation/drawer": "^5.0.0",
"@react-navigation/native": "^5.0.0",
"@react-navigation/stack": "^5.0.0",
"expo": "^36.0.0",
"expo-linear-gradient": "~8.0.0",
"lodash": "^4.17.20",
"moment": "^2.24.0",
"prop-types": "^15.7.2",
"react": "16.11.0",
"react-dom": "16.9.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz",
"react-native-gesture-handler": "~1.5.0",
"react-native-keyboard-aware-scroll-view": "^0.9.1",
"react-native-reanimated": "~1.4.0",
"react-native-safe-area-context": "0.6.0",
"react-native-screens": "2.0.0-alpha.12",
"react-native-web": "^0.11.7",
"react-navigation": "^3.11.1",
"react-navigation-header-buttons": "^3.0.1",
"react-redux": "^7.1.0",
"redux": "^4.0.4",
"redux-thunk": "^2.3.0"
},
"devDependencies": {
"babel-eslint": "^10.1.0",
"babel-preset-expo": "^8.2.3",
"eslint": "^7.10.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-extra-rules": "0.0.0-development",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.21.2",
"eslint-plugin-react-native": "^3.9.1",
"eslint-plugin-sort-class-members": "^1.8.0",
"eslint-plugin-unused-imports": "^0.1.3",
"flow": "^0.2.3",
"flow-bin": "^0.134.0",
"prettier": "^2.1.2",
"redux-devtools-extension": "^2.13.8"
},
"private": true
}
尝试清除浏览器缓存/使用隐身模式
使用 RN 0.62.2 在 Windows 10 上遇到同样的问题。
不使用博览会。
好的,我只是通过安装最新的 expo cli 并使用“expo upgrade”来解决这个问题。
世博会 39.0.3
Expo 的 React Native https://github.com/expo/react-native/archive/sdk-39.0.3.tar.gz
https://github.com/babel/minify/issues/950 ,
这个解决方案帮助了我,检查你的项目,在 babel.config.js 中,'transform-remove-console'
@LixingY链接末尾有一个额外的逗号,应该是https://github.com/babel/minify/issues/950
无论如何,这对我没有帮助。
你删除了这个文件transform-remove-console
吗? 然后卸载 app 和 react-native start --reset-cache,然后试试
发件人:Yossi [email protected]
发送时间:2020年10月12日10:11
反应:facebook/react-native [email protected]
抄送:Aaron [email protected] ; 提及[email protected]
主题:回复:[facebook/react-native] 错误:无法解析模块./debugger-ui/debuggerWorker.cff11639.js
from ``: (#28844)
@LixingY https://github.com/LixingY链接末尾有一个额外的逗号,应该是 babel/minify#950 https://github.com/babel/minify/issues/950
无论如何,这对我没有帮助。
―
你收到这个是因为你被提到了。
直接回复本邮件,在 GitHub 上查看https://github.com/facebook/react-native/issues/28844#issuecomment-707025336 ,或者退订https://github.com/notifications/unsubscribe-auth/AJNF2S2W2FTL6ZDO2IS3FCLSKLI53ANCQQTEM.M4M
我在我的树中没有看到这个文件。
我不明白的一件事:babel 中的参考是生产,我说的是调试模式。
如果我将设备日期设置为未来,则它不会执行任何网络请求。
好吧,我正在使用 react-native 0.63.3。
我为解决这个问题所做的是关闭所有正在运行的程序。 重新启动我的操作系统,它就消失了。
我认为当我们让程序运行并关闭盖子或长时间休眠时会发生这种情况。
好吧,我正在使用 react-native 0.63.3。
我为解决这个问题所做的是关闭所有正在运行的程序。 重新启动我的操作系统,它就消失了。
我认为当我们让程序运行并关闭盖子或长时间休眠时会发生这种情况。
在我的情况下不起作用(0.62.2)
如果有人仍然遇到问题,请尝试使用 react-navigation v4。 我有 v5 并将其降级到 v4 并且它起作用了。
与我无关。 我根本没有使用 react-navigation (也没有使用 expo,用于其他评论)。
我重新安装了Expo应用程序,问题消失了。 也许它也会帮助某人。
我有同样的问题。 挣扎了几天:/
无法调试我的代码。
与“react-native”相同的问题:“0.62.2”
如果我快速按 cmd+R 两次,它就会消失,但下一次重新加载再次引发错误
使用 0.62.2 时出现错误。 刚刚升级到0.63.3,错误依旧。
不确定这是否会有所帮助,但是当我进入 Metro bundler 窗口时,会显示以下内容:
chrome 控制台显示以下内容:
@rahamin1你在你的项目中找到babel.config.js
文件了吗?
你在你的项目中找到 babel.config.js 文件了吗?
是的。
它的内容是:
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
};
我根据某人的建议对其进行了修改:
module.exports = function(api) {
api.cache(true);
if (process.env.NODE_ENV === 'production' || process.env.BABEL_ENV === 'production') {
return {
"presets": ["module:metro-react-native-babel-preset"],
"plugins": ["react-native-paper/babel", ["transform-remove-console", {"exclude": ["error", "warn", "info"]}]]
}
} else {
return {
"presets": ["module:metro-react-native-babel-preset"],
}
}
}
这些都没有帮助。
@rahamin1好的.. 删除此代码transform-remove-console
,然后关闭终端,卸载您的应用程序,关闭浏览器,然后终端执行 yarn start --reset-cache
所以你希望文件如下?
module.exports = function(api) {
api.cache(true);
if (process.env.NODE_ENV === 'production' || process.env.BABEL_ENV === 'production') {
return {
"presets": ["module:metro-react-native-babel-preset"],
}
} else {
return {
"presets": ["module:metro-react-native-babel-preset"],
}
}
}
它几乎和以前一样,只是添加了api.cache(true)
@rahamin1是的,就是这样,然后关闭你运行的浏览器终端,卸载模拟器的app,然后进入你的项目,yarn start --reset-cache,清除react-native运行缓存,我就是这样做的,错误消失了
那确实奏效了,但只有一次......或者我可能错过了错误......不再确定。
然后我又试了一次,虽然我重复了同样的步骤,但它不再起作用了......
谢谢您的帮助!
@rahamin1 ,也许或者你可以删除api.cache(true)
?
在这种情况下,我得到了我的原始文件......
虽然它没有用,我感谢你的帮助!
在这种情况下,我得到了我的原始文件......
虽然它没有用,我感谢你的帮助!
你有控制台错误吗? 更新 react-navigation 为我解决了这个问题。
一些警告。 没有错误。
很高兴看到这里已经合并了一个修复程序,感谢这里的工作。 我们知道它什么时候上线以便我们可以使用它吗?
我目前正在从 Expo 37 -> 39 升级,这个问题阻止了任何调试工作,我猜 Expo 的人需要实施你提出的任何修复程序。 我花了大约 6 个小时试图为此找到修复程序,因此如果有人知道除回滚到 37 之外的短期解决方案,请告诉我们。
@fredrivett - 你好! 我在世博会工作, @thymikee或许能更好地回答这个问题。
感谢@brentvatne的更新,非常感谢 Expo 和 React Native 团队所做的所有工作,让我们作为应用程序开发人员的工作变得更加轻松。 感谢您在这里尽您所能。
短期解决方案应该是打开调试器面板并清除缓存。
嗯,在那里单击Clear site data
后我仍然遇到相同的错误。 我对Expo Developer Tools
标签和React Native Debugger
标签都这样做了。 我还安装了最新版本的React Native Debugger
( 0.11.5
)。 我可能在某处做了一个愚蠢的事情,我直接从 Expo 37 —> 39 升级。我得到的确切错误是:
Error: Unable to resolve module `./debugger-ui/debuggerWorker.cff11639.js` from ``:
None of these files exist:
* debugger-ui/debuggerWorker.cff11639.js(.native|.native.expo.ts|.expo.ts|.native.expo.tsx|.expo.tsx|.native.expo.js|.expo.js|.native.expo.jsx|.expo.jsx|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.wasm|.wasm|.native.svg|.svg)
* debugger-ui/debuggerWorker.cff11639.js/index(.native|.native.expo.ts|.expo.ts|.native.expo.tsx|.expo.tsx|.native.expo.js|.expo.js|.native.expo.jsx|.expo.jsx|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.wasm|.wasm|.native.svg|.svg)
at ModuleResolver.resolveDependency ([redacted]/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:163:15)
at ResolutionRequest.resolveDependency ([redacted]/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18)
at DependencyGraph.resolveDependency ([redacted]/node_modules/metro/src/node-haste/DependencyGraph.js:287:16)
at [redacted]/node_modules/metro/src/lib/transformHelpers.js:267:42
at Server.<anonymous> ([redacted]/node_modules/metro/src/Server.js:841:41)
at Generator.next (<anonymous>)
at asyncGeneratorStep ([redacted]/node_modules/metro/src/Server.js:99:24)
at _next ([redacted]/node_modules/metro/src/Server.js:119:9)
还可以尝试清除 Metro 捆绑器缓存: expo start -c
我遇到了同样的问题,到目前为止我一直只使用 iOS 模拟器
RN版本:
"react": "16.13.1",
"react-native": "0.63.3",
对我有用的是从模拟器中重新安装
Error: Unable to resolve module `./debugger-ui/debuggerWorker.cff11639` from ``:
None of these files exist:
* debugger-ui\debuggerWorker.cff11639(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
* debugger-ui\debuggerWorker.cff11639\index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
yarn list --pattern @react-native-community/cli
:yarn list v1.19.1
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
│ └─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
├─ @react-native-community/[email protected]
└─ @react-native-community/[email protected]
└─ @react-native-community/[email protected]
@rahamin1您是否尝试过@satya164的说明? https://github.com/facebook/react-native/issues/28844#issuecomment -728233645 和https://github.com/facebook/react-native/issues/28844#issuecomment -728459236
@thymikee我已经尝试了上述所有方法,但没有帮助。
我在使用 Mobx 时遇到了错误。 解决这个错误后,我的问题(错误:无法解析模块./debugger-ui/debuggerWorker)就解决了。
固定的。
请按照这个官方 React Native CLI 指南将 CLI 升级到
4.13.1
。请注意,这仅适用于 React Native 0.62 和更新版本。 没有计划对旧版本进行向后修复。
不适用于 0.62.2
@kadiryaka说:
我在使用 Mobx 时遇到了错误。 解决这个错误后,我的问题(错误:无法解析模块./debugger-ui/debuggerWorker)就解决了。
我想知道我的问题是否可能与 Mobx 有关,而且我对这里的解决方案不太走运——你能分享对你的 Mobx 问题的任何见解吗?
您必须删除全局安装的 react-native-cli 并使用 npx。
npm uninstall -g react-native
@react-native-community/cli
为前缀的条目并删除它们yarn install
/ npm install
npx react-native run-android
在我的情况下似乎没有帮助: https :
在我的情况下似乎没有帮助: #28844(评论)
也许尝试也从设备/模拟器中删除该应用程序。 我每隔一段时间都会遇到这个问题,删除应用程序可以解决它(暂时)
要补充的另一件事是,这个问题在我身边的 iOS 上没有任何作用,但是当为 Android 运行时,该应用程序的行为完全错误
谢谢,不过试了几次。
我分析了应用程序和设备信息并找到了我的错误原因。 我的设备时间比实际时间快,在我将设备时间设置为自动后,问题就消失了。
有完全相同的问题,我删除了 *.lock 和 node_modules 并重新安装了所有。
我在 "react-native": "0.63.4" 和 react-native-community/cli 4.13.1
然而,在大多数情况下,当尝试在调试器打开的情况下重新加载项目时,它会崩溃(在真实设备和模拟器上):(
最有用的评论
通过在 Chrome 中硬刷新(shift + 刷新)React 调试器选项卡,然后在检查器中清除应用程序数据,然后最后在 bash 中重新启动主捆绑线程(npm start)来为我解决