#TypeError: undefined is not an object (evaluating 'window.__TAURI_OS_PLUGIN_INTERNALS__.platform')
16 messages · Page 1 of 1 (latest)
yeah, I added os:default to the permissions. These as well
"os:default",
"os:allow-arch",
"os:allow-hostname",
"os:allow-os-type",
"os:allow-platform",
my brother, i want to help but you've given me little to work with
ah, got it
hold on
Here's my branch and the repo: https://github.com/pacholoamit/pachtop/blob/feat/change-window-management/src-tauri/capabilities/main.json
It's opensource.. I've been migrating to v2
please explain how to replicate the issue you're having
additionally, please provide the output of tauri info
got it
So after I migrated from tauri v2 beta to tauri v2.. I'm getting this error.. The errors are from when I try to use the plugin os package, for example
import { Platform, platform as obtainPlatform } from '@tauri-apps/plugin-os';
const p = obtainPlatform();
console.log("Platform: ", p);
resolved this just used
const { platform: obtainPlatform } = window.__TAURI__.os;
instead