#indow.__TAURI_INVOKE__ is not a function

2 messages · Page 1 of 1 (latest)

vernal wren
#

I migrate from tauri v1 to v2 and I use @tauri-apps/plugin-app and I got the following error:

import * as pluginApp from "@tauri-apps/plugin-app";
const appVersion = await pluginApp.getVersion();

error:

indow.__TAURI_INVOKE__ is not a function

I think that this package should updated and added to upgrade-migrate/from-tauri-1
where can I find the source code of this plugin?
By the way it took me few hours just to start with the migrations (permissions, versions, plugins, config, deprecated plugins,breaking changes...) 🙂

onyx cairn
#

@tauri-apps/plugin-app was used very early in the v2 alpha. It has since moved back to @tauri-apps/api/app, please use this instead.