emscripten-core / emscripten-core/emscripten

I can see the exported function in the mymodule.js however the await _jsRuntime.InvokeAsync cant find it

Open
#22,580 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

I had a C++ project that I used to build using a makelist.txt file. The project has Array.hh MyLib++.hh MyLib++.cc . All three modules are defined within the same namespace. In blazor webassembly, in the server side c# dlls I want to call the function xpower which is found in MyLib.
I have tried with many options but no luck. The await _jsRuntime.InvokeAsync("_xpower",...) returns runtime error (visible in the console) with reason _xpower undefined. using Typeof Module._xpower returns undefined too.
thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.