You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to resolve module ../Components/AccessibilityInfo/AccessibilityInfo message #1123
Hi Stas D. (@StasD) and thanks for reaching us. The issue with RN 0.61 debugging is already resolved(#1122) and the fix will be released soon. With respect to Metro bundler problems I recommend you to clear your caches and let us know if that worked for you. You can use the following instruction:
Clear watchman watches: watchman watch-del-all,
Delete node_modules: rm -rf node_modules and run yarn install,
Ran your commands. That didn't make any difference re: those Error: Unable to resolve module '../Components/AccessibilityInfo/AccessibilityInfo' messages... As I said, they only appear if I run "Debug iOS" from VSCode, and don't appear if I run react-native run-ios. So, most likely this extension's issue, not metro's.
Will wait for the new version to see if it fixes the debugging problems. That would be great.
I noticed that there is no react-native-cli package in your react-native info output, is it installed globally? Could you please try to reinstall it globally and let us know how it works for you? You can try to use these commands:
Created a brand new project: react-native init MyApp. Opened it in VS Code. Created a debug configuration React Native: Debug iOS. Edited launch.json to include "target": "iPhone 11 Pro" parameter. When I run Debug iOS for the very first time, those messages are actually not present... But on every successive run (when I close simulator, stop debugger, and run Debug iOS again), they are... Even if I delete ios/build folder before running "Debug iOS", or restart VS Code.
Yes, react-native-cli is installed globally, only with yarn, not npm.
Hi Stas D. (@StasD), I tried to reproduce that behavior on iPhone 11 Pro simulator and I didn't faced any problems. Could you please also try to clean haste, packager, npm and yarn caches using the following commands:
With the latest version of vscode-react-native, those messages seems to be gone. BUT so far I was only able to validate this on a newly created project. Because my existing project (obviously, more complex one) does not work with the new version at all!.. I tried deleting the ios/build folder, alone with node_modules, ios/Pods folders and ios/Pod.lock and yarn.lock files and recreating them, with no luck so far. I don't even have any particular error message from the plugin, it's just the app (its splash screen) appears, then disappears in the simulator. When I click app's icon in the simulator, it then shortly appears again, I get another message like Debugger worker loaded runtime on port 35636 in the debug window, then the app disappears again. And this only happens when I use the vscode-react-native plugin to run the app. If I run it with react-native run-ios, or in Xcode, it runs fine.
Here is the url: https://stas-ie.s3-eu-west-1.amazonaws.com/public/MyApp.zip
Basically I created a new project with react-native init MyApp then added a few features from the app I'm working on currently, so that the app exhibits the same behaviour: it runs fine with react-native run-ios --simulator "iPhone 11 Pro" or from Xcode, and crashes when I use "Debug iOS" from VSCode.
I added just two additional modules: react-native-navigation and react-native-splash-screen, and also modified AppDelegate.h and AppDelegate.m as per instructions from developers of those modules, e.g. here (maybe with small modifications).
I also noticed that if I comment out the code related to react-native-splash-screen, I will get an error in the simulator instead of just crashing. Like this one:
Invalid or unexpected token
RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
UIApplicationMain
main
start
Looks similar to the one you referenced above, I think.
Hi Stas D. (@StasD) . I was able to reproduce that behavior. Could you please try VSIX with a fix and let us know how it works for you? To try it please do the following:
Thanks, Stas D. (@StasD) ! Glad to hear that. Are you still experiencing issue with Unable to resolve module ../Components/AccessibilityInfo/AccessibilityInfo message?
Activity
SounD120 commentedon Oct 2, 2019
Hi Stas D. (@StasD) and thanks for reaching us. The issue with RN 0.61 debugging is already resolved(#1122) and the fix will be released soon. With respect to Metro bundler problems I recommend you to clear your caches and let us know if that worked for you. You can use the following instruction:
watchman watch-del-all,rm -rf node_modulesand runyarn install,yarn start --reset-cache,rm -rf /tmp/metro-*StasD commentedon Oct 2, 2019
Ran your commands. That didn't make any difference re: those
Error: Unable to resolve module '../Components/AccessibilityInfo/AccessibilityInfo'messages... As I said, they only appear if I run "Debug iOS" from VSCode, and don't appear if I runreact-native run-ios. So, most likely this extension's issue, not metro's.Will wait for the new version to see if it fixes the debugging problems. That would be great.
SounD120 commentedon Oct 2, 2019
Stas D. (@StasD) I just tested
Debug iOSon freshly created 0.61.1 React Native application and it worked without any problems on my configuration:I noticed that there is no
react-native-clipackage in yourreact-native infooutput, is it installed globally? Could you please try to reinstall it globally and let us know how it works for you? You can try to use these commands:StasD commentedon Oct 2, 2019
Created a brand new project:
react-native init MyApp. Opened it in VS Code. Created a debug configurationReact Native: Debug iOS. Editedlaunch.jsonto include"target": "iPhone 11 Pro"parameter. When I runDebug iOSfor the very first time, those messages are actually not present... But on every successive run (when I close simulator, stop debugger, and runDebug iOSagain), they are... Even if I deleteios/buildfolder before running "Debug iOS", or restart VS Code.Yes, react-native-cli is installed globally, only with yarn, not npm.
RedMickey commentedon Oct 7, 2019
Hi Stas D. (@StasD), I tried to reproduce that behavior on iPhone 11 Pro simulator and I didn't faced any problems. Could you please also try to clean
haste,packager,npmandyarncaches using the following commands:StasD commentedon Oct 7, 2019
With the latest version of
vscode-react-native, those messages seems to be gone. BUT so far I was only able to validate this on a newly created project. Because my existing project (obviously, more complex one) does not work with the new version at all!.. I tried deleting the ios/build folder, alone with node_modules, ios/Pods folders and ios/Pod.lock and yarn.lock files and recreating them, with no luck so far. I don't even have any particular error message from the plugin, it's just the app (its splash screen) appears, then disappears in the simulator. When I click app's icon in the simulator, it then shortly appears again, I get another message likeDebugger worker loaded runtime on port 35636in the debug window, then the app disappears again. And this only happens when I use thevscode-react-nativeplugin to run the app. If I run it withreact-native run-ios, or in Xcode, it runs fine.RedMickey commentedon Oct 8, 2019
Stas D. (@StasD), could you please share a demo application where such a behavior is reproduced? It will help us to investigate your problem.
SounD120 commentedon Oct 8, 2019
Hi Stas D. (@StasD) . Could you please also check if the debugging issues are the same as in #1127?
StasD commentedon Oct 8, 2019
Here is the url: https://stas-ie.s3-eu-west-1.amazonaws.com/public/MyApp.zip
Basically I created a new project with
react-native init MyAppthen added a few features from the app I'm working on currently, so that the app exhibits the same behaviour: it runs fine withreact-native run-ios --simulator "iPhone 11 Pro"or from Xcode, and crashes when I use "Debug iOS" from VSCode.I added just two additional modules:
react-native-navigationandreact-native-splash-screen, and also modifiedAppDelegate.handAppDelegate.mas per instructions from developers of those modules, e.g. here (maybe with small modifications).I also noticed that if I comment out the code related to
react-native-splash-screen, I will get an error in the simulator instead of just crashing. Like this one:Looks similar to the one you referenced above, I think.
SounD120 commentedon Oct 9, 2019
Hi Stas D. (@StasD) . I was able to reproduce that behavior. Could you please try VSIX with a fix and let us know how it works for you? To try it please do the following:
Extensions -> ... -> Install from VSIX...and select downloaded VSIXStasD commentedon Oct 9, 2019
Hi Yuri Skorokhodov (@SounD120),
All seems to working well with the new version. No more crashes. Breakpoints also work.
Thanks!
SounD120 commentedon Oct 9, 2019
Thanks, Stas D. (@StasD) ! Glad to hear that. Are you still experiencing issue with
Unable to resolve module ../Components/AccessibilityInfo/AccessibilityInfomessage?StasD commentedon Oct 9, 2019
No, those messages also gone. You can close this issue, I suppose.