realm-js icon indicating copy to clipboard operation
realm-js copied to clipboard

Cannot Debug inside VSCode: Cannot find module 'sync-request'

Open peterjuras opened this issue 7 years ago • 4 comments

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

  1. Install the vscode-react-native extension in Visual Studio Code (v1.24.1)
  2. Start the packager (CMD + Shift + P -> Start Packager)
  3. Start the debug launch configuration "Attach to Packager" from react-native
  4. 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

peterjuras avatar Jun 20 '18 06:06 peterjuras

Thanks for reporting. We need to investigate a bit to understand what the cause is.

kneth avatar Jun 20 '18 12:06 kneth

Any news?

peterjuras avatar Aug 23 '18 13:08 peterjuras

Any update on this issue?

waheedakhter avatar Sep 14 '18 06:09 waheedakhter

It's currently not a priority. It would be wonderful if someone from the community could have a go at it. Thanks!

bmunkholm avatar Nov 23 '18 12:11 bmunkholm