profile
viewpoint

Ask questionsStarting React packager from VSCode fails

Actual Behavior

Stop packager, followed by start packager fails

Expected Behavior

It should start. I restarted my computer and all of the sudden it fails every time. But it works with the command line.

Software versions

  • React-Native VS Code extension version: 0.10.0
  • VSCode version: Version 1.36.0
  • OS platform and version: Mac 10.14.5
  • NodeJS version: v12.1.0
  • React Native version: react-native-cli: 2.0.1 react-native: 0.60.0

Outputs (Include if relevant)

  • Output of the Debug Console (View -> Toggle Debug Console):

[Warning] Error: Packager is not running

[Error] Failed to start the React Native packager (error code 106)

Stack: Error: Failed to start the React Native packager (error code 106): Can't get fulfillment value from any promise, all promises were rejected.
	at Function.getWrappedError (/Users/ryanauger/.vscode/extensions/msjsdiag.vscode-react-native-0.10.0/src/common/error/internalError.js:35:16)
	at Function.wrapError (/Users/ryanauger/.vscode/extensions/msjsdiag.vscode-react-native-0.10.0/src/common/error/errorHelper.js:17:44)
	at handleErrors.resultOfCode.done.reason (/Users/ryanauger/.vscode/extensions/msjsdiag.vscode-react-native-0.10.0/src/common/entryPointHandler.js:43:72)
	at _rejected (/Users/ryanauger/.vscode/extensions/msjsdiag.vscode-react-native-0.10.0/node_modules/q/q.js:844:24)
	at /Users/ryanauger/.vscode/extensions/msjsdiag.vscode-react-native-0.10.0/node_modules/q/q.js:870:30
	at Promise.when (/Users/ryanauger/.vscode/extensions/msjsdiag.vscode-react-native-0.10.0/node_modules/q/q.js:1122:31)
	at Promise.promise.promiseDispatch (/Users/ryanauger/.vscode/extensions/msjsdiag.vscode-react-native-0.10.0/node_modules/q/q.js:788:41)
	at /Users/ryanauger/.vscode/extensions/msjsdiag.vscode-react-native-0.10.0/node_modules/q/q.js:604:44
	at runSingle (/Users/ryanauger/.vscode/extensions/msjsdiag.vscode-react-native-0.10.0/node_modules/q/q.js:137:13)
	at flush (/Users/ryanauger/.vscode/extensions/msjsdiag.vscode-react-native-0.10.0/node_modules/q/q.js:125:13)
	at process._tickCallback (internal/process/next_tick.js:61:11)

microsoft/vscode-react-native

Answer questions animaonline

Me2

useful!

Related questions

Error while executing command 'react-native.cmd run-android --no-packager' (error code 101) hot 4
Error while executing command 'react-native run-ios --simulator --no-packager' hot 2
Cannot read property 'getCurrentUserAsync' of undefined hot 1
Expo app doesn't connect to packager hot 1
Current workspace does not contain React Native projects hot 1
Could not debug - error code 604 hot 1
Current workspace does not contain React Native projects hot 1
[Bug][Expo] XDLError: packagerPort must be an integer - vscode-react-native hot 1
Version 0.13 breaks running packager from VS Code from different folder hot 1
Error while executing command 'react-native.cmd run-android --no-packager': Error while executing command 'react-native.cmd run-android --no-packager' (error code 101) hot 1
Can't attach packager for debugging hot 1
Cannot bind listener: operation not permitted hot 1
Not all success patterns were matched. (error code 712) hot 1
Current workspace does not contain React Native projects hot 1
Cannot bind listener: operation not permitted hot 1
Github User Rank List