Open dante-cervantes-rocketlab opened 4 months ago
I just tried creating a fresh 0.73.8 project with these steps:
npx react-native@latest init blankApp --version "latest"
cd blankApp
npx react-native-windows-init --overwrite
npx react-native run-windows
And it built and ran fine.
Here's the rn info:
info Fetching system and libraries information...
System:
OS: Windows 11 10.0.23660
CPU: "(24) x64 AMD Ryzen Threadripper PRO 3945WX 12-Cores "
Memory: 48.75 GB / 63.86 GB
Binaries:
Node:
version: 18.16.1
path: C:\Program Files\nodejs\node.EXE
Yarn:
version: 1.22.19
path: C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm:
version: 9.5.1
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
AllowAllTrustedApps: Enabled
Versions:
- 10.0.19041.0
- 10.0.22000.0
- 10.0.22621.0
IDEs:
Android Studio: Not Found
Visual Studio:
- 17.9.34616.47 (Visual Studio Community 2022)
Languages:
Java: Not Found
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.5
wanted: 0.73.5
react-native-windows:
installed: 0.73.8
wanted: 0.73.8
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
So... something must be different between your configuration and mine. Nothing obvious leaps out to me. Did you make any more edits to the project after creation? What else have you tried so far?
@chrisglein Thanks for the response.
I was able to make it run, i installed the multiplatform compat from Visual Studio and that did the trick.
Thanks.
So glad to hear you're unblocked! You ran the dependency script and it ran clean (all green checks)? If so then this may be a problem with the dependency script missing a required component. Perhaps something not required for en-us locales but required beyond that.
Next action for us would be to double check our dependency script on a clean machine with a non en-us language.
Problem Description
When trying to run a project i got an issue related to Newtonsoft trying to find version 13.0.0.0, however im not using NuGet to install anything this is a fresh project.
Steps To Reproduce
1 .- Run
npx react-native init test
2 .- npx react-native-windows-init --overwrite 3 .- Runnpx react-native run-windows
4 .- Got issue with Newtonsoft 13.0.0.0Expected Results
CLI version
0.73.4
Environment
i Running x64 node on a x64 machine El sistema no puede encontrar la ruta especificada. i Verbose: ON Looking for VS installs with version range: [17.0,18.0) Looking for vswhere at: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe √ Found compatible MSBuild at C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin (17.9.34616.47) Versión de MSBuild 17.9.5+33de0b227 para .NET Framework Compilación iniciada a las 25/2/2024 22:56:46.
Proyecto "C:\Users\Dante Cervantes\Documents\projects\test\windows\test.sln" en el nodo 1 (Restore destinos). ValidateSolutionConfiguration: Compilando la configuración de soluciones "Debug|x64". _GetAllRestoreProjectPathItems: Determinando los proyectos que se van a restaurar... Restore: La validación de la cadena de certificados X.509 utilizará el almacén de confianza predeterminado seleccionado por .N ET para la firma de código. La validación de la cadena de certificados X.509 utilizará el almacén de confianza predeterminado seleccionado por .N ET para la marca de tiempo. Compilación del proyecto terminada "C:\Users\Dante Cervantes\Documents\projects\test\windows\test.sln" (Restore destino s).
Compilación correcta. 0 Advertencia(s) 0 Errores
Tiempo transcurrido 00:00:01.13 √ Restoring NuGet packages ⠋ Auto-linking... Parsing project... Found Windows app project, config: { folder: 'C:\Users\Dante Cervantes\Documents\projects\test', sourceDir: 'windows', solutionFile: 'test.sln', project: { projectFile: 'test\test.vcxproj', projectName: 'test', projectLang: 'cpp', projectGuid: '{895d2115-1b27-45d6-9322-1bf6c76fea1c}' }, experimentalFeatures: { UseHermes: 'true', UseWinUI3: 'false', UseExperimentalNuget: 'false', ReactExperimentalFeaturesSet: 'true' } } Parsing dependencies... Calculating AutolinkedNativeModules.g.cpp... Reading AutolinkedNativeModules.g.cpp... No changes to AutolinkedNativeModules.g.cpp. Calculating AutolinkedNativeModules.g.props... Reading AutolinkedNativeModules.g.props... No changes to AutolinkedNativeModules.g.props. Calculating AutolinkedNativeModules.g.targets... Reading AutolinkedNativeModules.g.targets... No changes to AutolinkedNativeModules.g.targets. Calculating test.sln changes... √ Auto-linking... Success: No auto-linking changes necessary. (14ms) √ Found Solution: C:\Users\Dante Cervantes\Documents\projects\test\windows\test.sln i Build configuration: Debug i Build platform: x64 Running MSBuild with args /clp:NoSummary;NoItemAndPropertyList;Verbosity=normal /nologo /p:Configuration=Debug /p:Platform=x64 /p:AppxBundle=Never /bl /flp1:errorsonly;logfile=C:\Users\DANTEC~1\AppData\Local\Temp\msbuild_46488_build.err /flp2:warningsonly;logfile=C:\Users\DANTEC~1\AppData\Local\Temp\msbuild_46488_build.wrn /maxCpuCount /restore /p:RestorePackagesConfig=true /p:RunAutolinkCheck=false Compilación iniciada a las 25/2/2024 22:56:48.
Mensajes aplazados
× Building Solution × Build failed with message 1>C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(169,5): error : No se puede cargar el archivo o ensamblado 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' ni una de sus dependencias. El sistema no puede encontrar el archivo especificado. [C:\Users\Dante Cervantes\Documents\projects\test\windows\test.sln]. Check your build configuration. i Gathering MSBuild data for telemetry. i Unable to find msbuildproperties.g.json Command failed with error MSBuildError: 1>C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.targets(169,5): error : No se puede cargar el archivo o ensamblado 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' ni una de sus dependencias. El sistema no puede encontrar el archivo especificado. [C:\Users\Dante Cervantes\Documents\projects\test\windows\test.sln] Your telemetry sessionId was 7ee5ceaa6d748da08dbc5a1f995b4242