#Tauri functions missing in ES6 Modules

3 messages · Page 1 of 1 (latest)

high crown
#

I've noticed that the official documentation makes mention of multiple functions that don't exist in the ES6 Modules version of Tauri's NPM packages.

https://tauri.app/v1/api/js/path#appdatadir
https://tauri.app/v1/api/js/fs#exists

Using Vite in a Vanilla Typescript project, if you attempt to import these two functions by following the documentation, you'll encounter an import error. This is probably the case for other functions as well.

Is this an issue with the documentation being out of sync with the ES6 packages? Is this a known issue that is being worked on to be resolved? Should we be using the global window version of Tauri instead of the ES6 modules version or is this expected to be resolved soon?

Access the file system.

The path module provides utilities for working with file and directory paths.

lavish meadow
high crown
#

I'll double check and wipe my vite cache first