Port forwarding fails with “operation unsuccessful” error
Cause: This error occurs when the Vega Virtual Device isn’t running. Solution:- Go to Vega Studio > Devices.
- If the status shows VirtualDevice:Tv (Not running), go to Projects and select the Play button next to your project name.
Error loading webview in VS Code
While using VS Code, your screen might display the following message:React Native Tools extension fails to activate when creating a new project
When creating a new project, you might receive this error message:React Native Packager is already running when trying to launch the app
When trying to launch your app, you see this error:React Native Tools packager becomes unresponsive after selecting the wrong project
When running multiple projects and accidentally selecting the wrong project name in the React Native Packager, the React Native: Stop Packager command becomes disabled. Cause: The React Native Tools extension loses track of the active packager process when you select the wrong project. Solution: Reload the VS Code window from the Command Palette.- Press Ctrl+Shift+P (Linux) or Cmd+Shift+P (Mac) to open the Command Palette.
- Enter Developer: Reload Window.
- Select the command to reload VS Code.
- Restart your project’s packager.
No project templates appear when selecting a template
Cause: The current VS Code session doesn’t properly load environment variables from the Vega SDK. Solution: To load the Vega SDK environment variables, run the following command, then open VS Code from the same terminal usingcode:
Build or launch fails due to port conflicts
Cause: Another process is using the required port. Solution: To resolve the port conflict, set a different React Native port in VS Code. For steps, see “Step 3: (Optional) Configure a custom port” in Build an App with Vega Studio.The Fast Refresh feature doesn’t update the app when making code changes
Cause: Connection issues with port forwarding prevent Fast Refresh from communicating with the device. Solution: Reset the reverse port forwarding connection and relaunch your app:-
List the current reverse port forwarding rules:
-
Remove all reverse port forwarding rules:
- Relaunch your app.
Line-by-line debugging isn’t working
Cause: Developer Mode isn’t configured, or the debug host setting is missing fromshared_preferences.json.
Solution: To resolve the issue, verify Developer Mode and check shared_preferences.json. For details, see Configure Developer Mode on Fire TV Stick.
To enable line-by-line debugging on a custom port, add the following configuration to the /data/shared_preferences.json file on the device:
Build fails with “Missing [os.version]” error
When building your app, you see the following error:[os.version] section is required in manifest.toml. Existing projects created before this requirement don’t include it.
Solution: Run the following command from your project root, then rebuild:
manifest.toml manually:
min = "2.0" is the recommended setting. For when to use 1.2 instead, see Choose min.
Don’t add OS version module entries (/com.amazon.vega.os@IVega_*) to your source manifest.toml. The build generates them from [os.version]. For details, see Manifest [os.version] Section.
To upgrade an existing app to target OS 2.0 while continuing to support OS 1.2, see Upgrade Your App’s OS Version Compatibility. If your app was built with SDK 0.23 or earlier, see Migrate from SDK 0.23 or earlier.
Related topics
- Build an App with Vega Studio
- Set Up Vega Studio
- Run Your App on Vega Virtual Device or Fire TV
- Perform Line-by-Line Debugging with Vega Studio
- Resolve Fast Refresh Issues

