Skip to content

api.runOnBackend error with Trilium Next #12

@maphew

Description

@maphew

I'm attempting to get command-palette working with Trilium Next, beta 0.90.7-beta.

I created the js-frontend nodes for the 2 js files and added the labels. After restarting Trilium and invoking cmd-palette with ctrl-shift-P the widget pops up, but is overlaid with a small dialog saying:

Error: You're passing an async function to api.runOnBackend() which will likely not work as you intended. Either make the function synchronous (by removing 'async' keyword), or use api.runAsyncOnBackendWithManualTransactionHandling()

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