Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 10: WASM samples not working (book and code differences) #16

Open
ClimberBear opened this issue Jun 15, 2024 · 2 comments
Open

Comments

@ClimberBear
Copy link

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.

@ClimberBear ClimberBear changed the title Chapter 10: WASM samples not working Chapter 10: WASM samples not working (book and code differences) Jun 15, 2024
@EngstromJimmy
Copy link
Collaborator

Those are samples for reference not "follow along"-instructions. Since we don't use it in our project, so there might be missing steps.

Not sure what you mean with b?

@ClimberBear
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants