-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled Promise Rejection: Error: key does not exist #9
Comments
Can you check the contents of the settings json file? |
I ended up replacing my usage of tauri-settings with a simple class that reads and writes using https://tauri.app/v1/api/js/fs |
I ran into a similar problem and ended up removing this library from the project. But maybe it is a scope issue. The following snippet is an excerpt from the OP,
My scope used to look like this, but I believe the scope should also include the
This is not a verified fix. Will comment after I try this solution on my project. |
Sorry for the late reply. Can you please check and let me know whether adding APPDATA to the scope fixes it? Also, which operating system and Tauri API version are you using? I am working on a rewrite of the library, which will use a Rust plugin instead, so the JS API will not be required at all. Hopefully, that will fix such issues in the future. |
I have a pretty straightforward store using SettingsManager but I am getting an unhandled promise rejection saying the key does not exist
I thought that initializing the SettingsManager instance would make it so the key exists.
I worry this is a problem with my tauri app not being able to write to disk, but my tauri.conf.json has
The text was updated successfully, but these errors were encountered: