#Property '__TAURI__' does not exist

4 messages · Page 1 of 1 (latest)

hearty matrix
#

Hi folks,

I just migrated from Tauri 1.0 to 2.0 and have received this error when trying to invoke Rust from the front end.

I tried checking the documentaion for both major version but I can't quite seem to figure out why the window object doesn't have the TAURI api atatched to it.

Any advice?

wintry arrow
#

Try window.__TAURI_INTERNALS__

hearty matrix
#

I don't seem to have any __TAURI* sub directories in window

hearty matrix
#

Wait, I think I may have it wrong. I don't need both lines. it's one or the other, and I'm using the NPM package so I don't need the DOM reference.

Testing to confirm before marking as solved.