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'm trying to execute the samples for JS interoperability.
I'm having a lot of problems.
a) I miss the @rendermode InteractiveWebAssemblyin the book (is in the github code only)
b) The file Chapter10/MyBlog/SharedComponents/Demo/JSInteropSamplesWasm/JSToStaticNET.razor has the code pointing to sample in await JSHost.ImportAsync("nettojs", "../JSInteropSamples/NetToJS.razor.js");but, on the other hand the file NetToJS.razor.js exist in the correct folder JSInteropSamplesWasm/NetToJS.razor.js
Still fighting to get this working in my installation. It's possible new issues arise.
The text was updated successfully, but these errors were encountered:
ClimberBear
changed the title
Chapter 10: WASM samples not working
Chapter 10: WASM samples not working (book and code differences)
Jun 15, 2024
The b) is a problem of cut&paste. You duplicated the folder, and forgot to modify the javascript called. It worked because the second one call the first one javascript, and is the same code.
I'm trying to execute the samples for JS interoperability.
I'm having a lot of problems.
a) I miss the
@rendermode InteractiveWebAssembly
in the book (is in the github code only)b) The file
Chapter10/MyBlog/SharedComponents/Demo/JSInteropSamplesWasm/JSToStaticNET.razor
has the code pointing to sample inawait JSHost.ImportAsync("nettojs", "../JSInteropSamples/NetToJS.razor.js");
but, on the other hand the fileNetToJS.razor.js
exist in the correct folderJSInteropSamplesWasm/NetToJS.razor.js
Still fighting to get this working in my installation. It's possible new issues arise.
The text was updated successfully, but these errors were encountered: