realm-js
realm-js copied to clipboard
Cannot Debug inside VSCode: Cannot find module 'sync-request'
Goals
I want to debug my app on iOS and Android devices (not simulators) in Visual Studio Code
Expected Results
It crashes at the start with a "Cannot find module 'sync-request'" error.
Actual Results
The require('sync-request') call from this line fails. If the debug session is started without visual studio code I receive a CORS issue.
Steps to Reproduce
- Install the vscode-react-native extension in Visual Studio Code (v1.24.1)
- Start the packager (CMD + Shift + P -> Start Packager)
- Start the debug launch configuration "Attach to Packager" from react-native
- Start a remote debug session from a connected device -> The error is thrown.
Code Sample
Version of Realm and Tooling
- Realm JS SDK Version: 2.10.0
- Node or React Native: React Native 0.55.2
- Client OS & Version: macOS 10.13.5
- Which debugger for React Native: Visual Studio Code 1.24.1
Thanks for reporting. We need to investigate a bit to understand what the cause is.
Any news?
Any update on this issue?
It's currently not a priority. It would be wonderful if someone from the community could have a go at it. Thanks!