Skip to content

[Bug] Adding a project to an untitled workspace, gives Failed to activate the React Native Tools extension (error code 702) #2076

Closed
@mousumikundu

Description

🐛 What is the bug? How can we reproduce it?

Please put here any steps, code or any information that can help us
reproduce the error on our side so we can fix it:

  1. Open a react native project, add another react native project to the workspace.
  2. We cannot see the react native packager button to be there.
  3. We see the below in the react native output window
[Debug] Projects found: 2
[Error] Failed to activate the React Native Tools extension (error code 702)```


## Expected behavior

What were you expecting to happen?

React native packager button to be seen.
This issue occurs after React native tools upgrade from 1.12.1 to 1.12.2. With 1.12.1 the logs in the react native window would be 

```[Debug] React Native version: errorUnknown
[Debug] react-native package version is not found in /Volumes/workplace/test1. Reason: errorUnknown
[Debug] React Native version: 0.71.8```

## Debug output

<details>
<summary>Debug Console</summary>

```text

PASTE OUTPUT OF DEBUG CONSOLE (View -> Toggle Debug Console)

React Native output channel

PASTE OUTPUT OF REACT-NATIVE OUTPUT CHANNEL (View -> Toggle Output -> Select React-Native in ListBox)

Developer Tools console

PASTE OUTPUT OF DEVELOPER TOOLS CONSOLE (Help -> Toggle Developer Tools -> Select Console tab)

Environment

Please tell us about your system and your project:

  • npx react-native doctor or npx expo doctor if your project is using Expo:
PASTE OUTPUT OF `npx react-native doctor` or `npx expo doctor`
  • envinfo:
PASTE OUTPUT OF `npx envinfo`
  • React Native Tools extension version: 1.12.1
  • Expo SDK version (if applicable): VERSION

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions