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

Issues with ReactJs and create-wasm-app #57

Open
DavidGOrtega opened this issue Mar 6, 2024 · 1 comment
Open

Issues with ReactJs and create-wasm-app #57

DavidGOrtega opened this issue Mar 6, 2024 · 1 comment

Comments

@DavidGOrtega
Copy link

👋

I have tried to use Voy for a quick test and was not successful.

create-wasm-app wait hangs loading the wasm. To reproduce

yarn install
yarn dev

in reactjs 18 the module seems not to be there. I have tried to await the module init.

const { Voy: VoyClient } = await import("voy-search");
const voyClient = new VoyClient({});

however I have the error

voy_search_bg.js:294 Uncaught (in promise) TypeError: wasm.voy_new is not a function
    at new Voy (voy_search_bg.js:294:1)
    at memoryTest (LLMs.js:114:1)
    at async callLLM (App.js:76:1)
@jacobhq
Copy link

jacobhq commented Aug 20, 2024

I get this on the examples in the project too. I can't get any of them to work.

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

No branches or pull requests

2 participants