Skip to content

Error calling "invoke" in web and Android #2

@YerayAlonso

Description

@YerayAlonso

I have tested in Windows desktop, web and Android. In Windows desktop it works without errors but I get an error when trying to call invoke both on web and Android emulator.
I'm using pnpm.

  • In web:

    pnpm dev

    This is the error I see in Chrome's console:

    Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'invoke')

    Image

    Maybe invoke should only be called when in tauri.

  • In Android emulator:

    pnpm tauri android dev

    This is the error I see in the terminal:

    Msg: Uncaught (in promise) #<Object>

    Image

I see in the Tauri docs they have a plugin for reading and writing (here), but I'm not sure if that's the solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions