Bladeren bron

Add workaround to documentation for native mode when WebView2Loader.dll fails to load

vonpawn 2 jaren geleden
bovenliggende
commit
bc4b997788
1 gewijzigde bestanden met toevoegingen van 10 en 0 verwijderingen
  1. 10 0
      website/documentation.py

+ 10 - 0
website/documentation.py

@@ -604,6 +604,16 @@ def create_full() -> None:
     # HACK: restore color
     demo.BROWSER_BGCOLOR = demo_BROWSER_BGCOLOR
 
+    # Show a helpful workaround until issue is fixed upstream.
+    # For more info see: https://github.com/r0x0r/pywebview/issues/1078
+    ui.markdown('''
+        If webview has trouble finding required libraries, you may get an error relating to 'WebView2Loader.dll'.
+        To workaround around this issue, try moving the dll file up a directory.
+        
+        * From: `.venv/Lib/site-packages/webview/lib/x64/WebView2Loader.dll`
+        * To: `.venv/Lib/site-packages/webview/lib/WebView2Loader.dll`
+    ''')
+
     @text_demo('Environment Variables', '''
         You can set the following environment variables to configure NiceGUI: