aptabase / tauri-plugin-aptabase

Tauri Plugin for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps
https://aptabase.com
MIT License
35 stars 4 forks source link

fix: invoke is in primitives now #7

Closed nwesterhausen closed 12 months ago

nwesterhausen commented 12 months ago

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 commented 12 months ago

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 commented 12 months ago

Hey @nwesterhausen

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