react-native-windows
react-native-windows copied to clipboard
Unable to build the RNW app with version 0.69.6
Problem Description
Hi, We were getting issue with header button in the navigation not clickable with react-native-windows version 0.68.9. saw that there an open issue which said the issue will be fixed on RNW 0.69.6. Issue link
When I try to run the app with RNW 0.69.6, I am unable to build the app in VS 2019. I get the following error.
Could not write lines to file "build\x64\Debug\Microsoft.ReactNative.Managed.CodeGen\netcoreapp3.1\win-x64\Microsoft.ReactNative.Managed.CodeGen.GeneratedMSBuildEditorConfig.editorconfig". Could not find a part of the path 'C:\Users\user\AppName\WinRebuild\AppName\node_modules\react-native-windows\Microsoft.ReactNative.Managed.CodeGen\build\x64\Debug\Microsoft.ReactNative.Managed.CodeGen\netcoreapp3.1\win-x64\Microsoft.ReactNative.Managed.CodeGen.GeneratedMSBuildEditorConfig.editorconfig'.
Steps To Reproduce
- npx react-native init MyApp --template react-native@^0.69.0
- cd MyApp
- npx react-native-windows-init --overwrite --version 0.69.6 --language cs
- npx react-native autolink-windows --sln windows\MyApp.sln.
- open the MyApp.sln in VS2019 enterprise and try to build.
- We get error mentioned in the description.
- To make sure no dev dependencies are missing we ran the below command as well
Set-ExecutionPolicy Unrestricted -Scope Process -Force;
iex (New-Object System.Net.WebClient).DownloadString('https://aka.ms/rnw-deps.ps1')
The output is as follows Checking Free space on C: > 15 GB OK Checking Installed memory >= 16 GB OK Checking Windows version > 10.0.16299.0 OK Checking Developer mode is on OK Checking Long path support is enabled OK Checking git OK Checking Compilers, build tools, SDKs and Visual Studio OK Checking NodeJS LTS OK Checking Chrome OK Checking .net core 3.1 OK
Even though long path is enabled we are unable to build the app.
Expected Results
App builds successfully and we are able to run the app.
CLI version
npx react-native --version
Environment
npx react-native info
Unable to run command
npx react-native info
error: unknown command 'info'
(Did you mean init?)
Target Platform Version
10.0.19041
Target Device(s)
Desktop
Visual Studio Version
Visual Studio 2019
Build Configuration
Debug
Snack, code example, screenshot, or link to a repository
No response