Notalib / nativescript-webview-ext

Nativescript plugin with extended WebView functionality
Apache License 2.0
76 stars 37 forks source link

Android ensureFetchSupport raise "Uncaught Error: Mismatched anonymous define() module" #133

Open alexist opened 2 years ago

alexist commented 2 years ago

On android, ensureFetchSupport throws on Error "chromium: [INFO:CONSOLE(8)] "Uncaught Error: Mismatched anonymous define() module"

This error only happen when a particular website is loaded into the webViewExt. (private website)

When i remove the function "async ensureFetchSupport() " declared in webview-ext.android.js, my website is loading correcty.

I'm not a javascript expert, i don't understand what causing this issue, and how to fix it : is this related to my webapp, or the way fetch.umd.js declare the fetch ?

To fix the issue, i need to override a source from the plugin, maybe on option to disable the ensureFetchSupport in android can be added to this plugin ?