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
Microsoft.JSInterop.JSException is thrown when trying to access a JavaScript method in Internet Explorer. Unfortunately, my deployment environment is restricted to this browser.
To Reproduce
Steps to reproduce the behavior:
Using this version of ASP.NET Core 3.0.0
Run this code (In Internet Explorer):
Create a new Blazor App that runs on server side.
Daddoon's Blazor.Polyfill can be found here and is required to get clicks working in Internet Explorer. Just drop it in wwwroot so that it works with the example below.
Microsoft.JSInterop.JSException: 'Could not find 'debugOut' in 'window'.
Error: Could not find 'debugOut' in 'window'.
at Anonymous function (https://localhost:44385/_framework/blazor.server.js:8:28059)
at p (https://localhost:44385/_framework/blazor.server.js:8:28010)
at Anonymous function (https://localhost:44385/_framework/blazor.server.js:8:28731)
at B (https://localhost:44385/blazor.polyfill.min.js:1:81352)
at e.jsCallDispatcher.beginInvokeJSFromDotNet (https://localhost:44385/_framework/blazor.server.js:8:28701)
at Anonymous function (https://localhost:44385/_framework/blazor.server.js:1:19139)
at e.prototype.invokeClientMethod (https://localhost:44385/_framework/blazor.server.js:1:19117)
at e.prototype.processIncomingData (https://localhost:44385/_framework/blazor.server.js:1:17160)
at connection.onreceive (https://localhost:44385/_framework/blazor.server.js:1:10267)
at i.onmessage (https://localhost:44385/_framework/blazor.server.js:1:38025)'
Expected behavior
A log in the console saying Here's a string: "Test String"
The text was updated successfully, but these errors were encountered:
Are you sure that your Javascript code is compliant with the ECMAScript version used on IE11 ?
I think all is failing because the closure you written is not compatible with IE11 that is pretty old.
You may write with recent Javascript and transpile at build time your javascript code to EcmaScript 5.
I think your code should work if you write this instead (as a proof of the source of the bug):
Describe the bug
Microsoft.JSInterop.JSException
is thrown when trying to access a JavaScript method in Internet Explorer. Unfortunately, my deployment environment is restricted to this browser.To Reproduce
Steps to reproduce the behavior:
Create a new Blazor App that runs on server side.
Daddoon's Blazor.Polyfill can be found here and is required to get clicks working in Internet Explorer. Just drop it in wwwroot so that it works with the example below.
_Host.cshtml
Index.razor
3. With these arguments '....'4. See error
Expected behavior
A log in the console saying
Here's a string: "Test String"
The text was updated successfully, but these errors were encountered: