microsoft / react-native-windows

A framework for building native Windows apps with React.
https://microsoft.github.io/react-native-windows/
Other
16.11k stars 1.13k forks source link

Yarn run windows dont show app #5398

Closed javieraparisivaldes closed 4 years ago

javieraparisivaldes commented 4 years ago

Environment

  1. react-native -v:4.10.1
  2. react-native run-windows --info: System: OS: Windows 10 10.0.18362 CPU: (4) x64 Intel(R) Core(TM) i3-7020U CPU @ 2.30GHz Memory: 3.91 GB / 7.91 GB Binaries: Node: 12.9.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.10.2 - C:\Program Files\nodejs\npm.CMD npmPackages: react: 16.11.0 => 16.11.0 react-native: ^0.62.2 => 0.62.2 react-native-windows: ^0.62.0-0 => 0.62.0 Installed UWP SDKs: 10.0.18362.0
  3. reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" AllowDevelopmentWithoutDevLicense REG_DWORD 0x1 AllowAllTrustedApps REG_DWORD 0x1

Steps to Reproduce

1.npx react-native init test1 --version ^0.62.2 2.npx react-native-windows-init --overwrite 3.yarn run windows

Expected Behavior

Start App and metro console

Actual Behavior

Error on console and dont start App

react-native run-windows --logging

√ Building Solution √ Starting the React-Native Server ‼ Applying Add-AppDevPackage.ps1 workaround for VS 16.5-16.6 bug - see https://developercommunity.visualstudio.com/content/problem/1012921/uwp-packaging-generates-incompatible-certificate.html √ Removing old version of the app √ Enabling Developer Mode Add-AppxPackage : Error de implementación con HRESULT: 0x80073CF3, Se generaron errores en el paquete para las actualizaciones o la validación de dependencias o de conflictos. Windows no puede instalar el paquete 839ce860-9bce-487d-87ec-5a92dfb3b1e0_1.0.0.0_x86__e00er6ncjn8c0 porque depende de un marco que no se encontró. Proporcione el marco "Microsoft.VCLibs.140.00.Debug" publicado por "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", con arquitectura de procesador neutra o x86 y versión mínima 14.0.27810.0, junto con este paquete para instalarlo. Los marcos con el nombre "Microsoft.VCLibs.140.00.Debug" instalados actualmente son: {} NOTA: Para obtener información adicional, consulta [ActivityId] d0aa3c9a-4ef9-0000-d4e8-aad0f94ed601 en el registro de eventos o usa la línea de comandos Get-AppPackageLog-ActivityId d0aa3c9a-4ef9-0000-d4e8-aad0f94ed601 En C:\code\RNW\test1\node_modules\react-native-windows\local-cli\runWindows\utils\WindowsStoreAppUtils.ps1: 183 Carácter: 5

× Installing new version of the app from layout × Failed to deploy: Installing new version of the app from layout error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Steps install enviroment:

1.run rnw-dependencies.ps1 2.yarn add global react-native

asklar commented 4 years ago

@javieraparisivaldes Gracias por tu consulta. Me parece que es un resultado del mismo bug que #5179 . Hasta que no se resuelva ese bug, deberías poder correr tu aplicación siguiendo estas instrucciones por única vez para pre-instalar los paquetes de dependencias necesarios:

chrisglein commented 4 years ago

Duplicate of #5179. If there's more context needed to that issue feel free to add it or reactive if there's something we're missing here.