Replies: 1 comment
-
Solved it with some extra research: var module = await JSRuntime.InvokeAsync<IJSInProcessObjectReference>("import", "./exampleJsInterop.js");
module.Invoke<string>("showPrompt", "What's up?"); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I can't seem to get JS isolation to work in a wasm Blazor app, using synchronous calls only. This is my attempt:
I'm getting the following error:
blazor.webassembly.js:1 Microsoft.JSInterop.JSException: Could not find 'showPrompt' ('showPrompt' was undefined).
It works perfectly well when using asynchronous calls and the regular JSRuntime...
Beta Was this translation helpful? Give feedback.
All reactions