You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing an issue when debugging a MAUI Blazor application on an Android emulator/device with API 28. The application fails with the following error:
Microsoft.JSInterop.JSException: 'Could not find 'logInit' ('logInit' was undefined). Error: Could not find 'logInit' ('logInit' was undefined). at https://0.0.0.0/_framework/blazor.webview.js:1:540 at Array.forEach (<anonymous>) at l.findFunction (https://0.0.0.0/_framework/blazor.webview.js:1:508) at w (https://0.0.0.0/_framework/blazor.webview.js:1:5251) at https://0.0.0.0/_framework/blazor.webview.js:1:3044 at new Promise (<anonymous>) at g.beginInvokeJSFromDotNet (https://0.0.0.0/_framework/blazor.webview.js:1:3007) at External.__callback (https://0.0.0.0/_framework/blazor.webview.js:1:48308) at MessagePort.<anonymous> (<anonymous>:23:21)
The error does not occur when debugging the same application on an Android emulator/device with API 34.
Steps to Reproduce
Create a MAUI Blazor application.
Add a call to a JavaScript function (logInit) in the Blazor component or page.
Debug the application on an Android emulator/device with API 28.
Observe the JSException error.
Debug the same application on an Android emulator/device with API 34.
Observe that the error does not occur on API 34.
Expected Behavior
The logInit JavaScript function should be found and executed successfully on both API 28 and API 34.
Actual Behavior
The application fails on API 28 with a JSException indicating that logInit is undefined, but it works as expected on API 34.
The text was updated successfully, but these errors were encountered:
I am experiencing an issue when debugging a MAUI Blazor application on an Android emulator/device with API 28. The application fails with the following error:
Microsoft.JSInterop.JSException: 'Could not find 'logInit' ('logInit' was undefined). Error: Could not find 'logInit' ('logInit' was undefined). at https://0.0.0.0/_framework/blazor.webview.js:1:540 at Array.forEach (<anonymous>) at l.findFunction (https://0.0.0.0/_framework/blazor.webview.js:1:508) at w (https://0.0.0.0/_framework/blazor.webview.js:1:5251) at https://0.0.0.0/_framework/blazor.webview.js:1:3044 at new Promise (<anonymous>) at g.beginInvokeJSFromDotNet (https://0.0.0.0/_framework/blazor.webview.js:1:3007) at External.__callback (https://0.0.0.0/_framework/blazor.webview.js:1:48308) at MessagePort.<anonymous> (<anonymous>:23:21)
The error does not occur when debugging the same application on an Android emulator/device with API 34.
Steps to Reproduce
Expected Behavior
The logInit JavaScript function should be found and executed successfully on both API 28 and API 34.
Actual Behavior
The application fails on API 28 with a JSException indicating that logInit is undefined, but it works as expected on API 34.
The text was updated successfully, but these errors were encountered: