windows project broke on installing the library
See original GitHub issueBug description:
Installing react-native-webview
on a react native windows project makes it stop building
To Reproduce: Windows 10
npx react-native init react_native_project
cd react_native_project
npx react-native-windows-init --overwrite
- if you run here
npm run windows
it works flawlessly npm install react-native-webview
npm run windows
Expected behavior: Starts the dev app as before
Screenshots/Videos:
C:\Users\myuser\workspace\react_native_project\node_modules\react-native-windows\Mso\dispatchQueue\dispatchQueue.h(728,17): error C2607: static assertion failed [C:\Users\myuser\workspace\react_native_project\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj]
C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\XamlCompiler\Microsoft.Windows.UI.Xaml.Common.targets(486,5): error MSB4181: The "CompileXaml" task returned false but did not log an error. [C:\
Users\myuser\workspace\react_native_project\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj]
Done Building Project "C:\Users\myuser\workspace\react_native_project\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Users\myuser\workspace\react_native_project\node_modules\react-native-webview\windows\ReactNativeWebView\ReactNativeWebView.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Users\myuser\workspace\react_native_project\windows\react_native_project\react_native_project.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Users\myuser\workspace\react_native_project\windows\react_native_project.sln" (default targets) -- FAILED.
Environment:
- OS: Windows 11
- OS version: 22000.556
- react-native version: tried with 0.68 and 0.67.4 (same result)
- react-native-webview version: 11.18.1
- “react-native-windows”: 0.68.0-preview.8 and 0.67.6 (same result)
Issue Analytics
- State:
- Created a year ago
- Reactions:5
- Comments:15
Top Results From Across the Web
Troubleshoot Visual Studio installation and upgrade issues
This troubleshooting guide includes step-by-step instructions that should resolve most installation issues.
Read more >Fix problems that block programs from being installed or ...
The Program Install and Uninstall troubleshooter helps you automatically repair issues when you're blocked from installing or removing programs.
Read more >Reinstalling and Updating NuGet Packages - Microsoft Learn
Project is broken due to deleted files: NuGet does not prevent you from removing items added from packages, so it's easy to inadvertently...
Read more >Microsoft .NET Framework Repair Tool is available
The tool tries to resolve those issues by applying known fixes or by repairing corrupted installations of the supported .NET Framework versions.
Read more >Troubleshoot broken references - Visual Studio - Microsoft Learn
Another solution is to use the Reference Path item in the project's property pages and modify the folders in the list to point...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve meet the same issue. @francisco-mural you can try config linking manually follow article here: https://github.com/react-native-webview/react-native-webview/blob/master/docs/Getting-Started.md#windows
@francisco-mural Could you try building in VS and paste in the error messages you’re getting there, so we can get a little more info!