I've created a react-native
app in VS Code
and trying to run it after settings configuration in launch.json
"version": "0.2.0",
"configurations": [
{
"name": "Debug Android",
"program": "${workspaceRoot}/.vscode/launchReactNative.js",
"type": "reactnative",
"request": "launch",
"platform": "android",
"sourceMaps": true,
"outDir": "${workspaceRoot}/.vscode/.react"
}
]
I've device connected to the PC and after settings configurations, I pressed F5 but IDE throws error saying
Error while executing command 'react-native.cmd run-android --no-packager' (error code 101)
Please help me to sort this out. Let me know if you need more details about the problem.