Skip to content

fix: invoke is in primitives now#7

Merged
goenning merged 1 commit intoaptabase:v2from
nwesterhausen:patch-invoke-v2
Nov 3, 2023
Merged

fix: invoke is in primitives now#7
goenning merged 1 commit intoaptabase:v2from
nwesterhausen:patch-invoke-v2

Conversation

@nwesterhausen
Copy link
Copy Markdown
Contributor

Tauri v2 put invoke under primitives recently. So if you are tracking other plugins with branch v2 and also keeping Tauri v2 alpha up-to-date, this broke the client side of the plugin.

As it is currently, running this client-side in a Tauri app gives you this error:

Uncaught (in promise) TypeError: window.__TAURI_IPC__ is not a function

This PR fixes that issue, and I was able to verify the fix locally.

What I'm not sure about is how you will go about publishing it :)

To test locally, I had to dive into my node_modules and build the module since all that's in the repo is source code.

@goenning
Copy link
Copy Markdown
Member

goenning commented Nov 1, 2023

Thanks! I think I could release an alpha version of the npm package 🤔

I’ll be doing some work on this repo soon and merge/release this :)

@goenning goenning merged commit 3a46b90 into aptabase:v2 Nov 3, 2023
@goenning
Copy link
Copy Markdown
Member

goenning commented Nov 3, 2023

Hey @nwesterhausen

I git un-ignored the dist folder so you install the package directly from GitHub for now :)

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

Successfully merging this pull request may close these issues.

2 participants