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
Although the debugger successfully attached, when the Expo was open on the mobile side, the debugger failed miserably immediately due to an unexpected token in JSON feed
OS platform and version: Microsoft Windows [Version 10.0.17134.165]
NodeJS version: v10.7.0
React Native version: ~0.55.2
Expo SDK version (include if relevant): ^27.0.1
Bootstrapped via CRNA
Outputs (Include if relevant)
Output of the Debug Console (View -> Toggle Debug Console):
OS: win32 x64
Adapter node: v7.9.0 x64
vscode-chrome-debug-core: 3.17.3
Starting debugger app worker.
Established a connection with the Proxy (Packager) to the React Native application
Debugger worker loaded runtime on port 26933
******** Unhandled error in debug adapter: SyntaxError: Unexpected token L in JSON at position 0
at JSON.parse (<anonymous>)
at Pipe.channel.onread (internal/child_process.js:471:28)
Output of the React-Native output channel (View -> Toggle Output -> Select React-Native in ListBox):
[Info] Starting Packager
[Debug] Executing command: react-native.cmd start --port 19001 --root .vscode
Scanning folders for symlinks in e:\crna\node_modules (116ms)
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
│ Running Metro Bundler on port 19001. │
│ │
│ Keep Metro running while developing on any JS projects. Feel free to │
│ close this tab and run your own Metro instance if you prefer. │
│ │
│ https://github.com/facebook/react-native │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
Looking for JS files in
e:\crna
e:\crna\.vscode
Metro Bundler ready.
[Info] Packager started.
Loading dependency graph, done.
Starting custom debugger by executing: echo A debugger is not needed: "e:\crna" "e:\crna\.vscode"
Output of the Developer Tools console (Help -> Toggle Developer Tools -> Select Console tab):
Hi again @stevefan1999. We had to undo PR #760 with a fix because it unexpectedly brake stdio communication between debuggee process and debugger. Originally, your issue caused by this one nodejs/node#21671 and I think, that it will be fixed in upcoming 10.10 release of Nodejs. So, as for now to avoid this error, change system nodejs version to 10.5 or lower.
Actual Behavior
Expected Behavior
Software versions
Microsoft Windows [Version 10.0.17134.165]
v10.7.0
~0.55.2
^27.0.1
Outputs (Include if relevant)
launch.json:
settings.json:
Extra info: I used
react-native-typescript-transformer
to get TypeScript support, still this is irrelevant to this debugger problem.The text was updated successfully, but these errors were encountered: