Skip to content

Issues with ReactJs and create-wasm-appΒ #57

@DavidGOrtega

Description

@DavidGOrtega

πŸ‘‹

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions