question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

windows project broke on installing the library

See original GitHub issue

Bug 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:closed
  • Created a year ago
  • Reactions:5
  • Comments:15

github_iconTop GitHub Comments

2reactions
hellodinhhoacommented, Apr 26, 2022

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

2reactions
chiaramooneycommented, Apr 4, 2022

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found