vscode-react-native icon indicating copy to clipboard operation
vscode-react-native copied to clipboard

The extension fails badly if run with a non supported version of React-Native

Open digeff opened this issue 10 years ago • 1 comments

This is what we get: image

There are two issues to this bug. We should probably be checking for the version of react-native in the package.json, and give a nice error message if they are using a non-supported version of react-native.

The other issue that we need to fix is that .done() in the method Packager.start() line 56 doesn't has a failure handler, so it'll throw an exception if that logic fails. In the case I'm testing the method monkeyPatchOpnForRNPackager fails because version 0.14 of react native doesn't has the opn library where the code expect it. We should make sure we handle that case graciously, and make sure all the .done()s we have in the whole project have a proper way of handle rejected promises.

digeff avatar Feb 18 '16 18:02 digeff

This was solved in: https://github.com/Microsoft/vscode-react-native/pull/62

digeff avatar Feb 22 '16 16:02 digeff