Skip to content

fs: Forbidden path on readFile on app restart #12091

Answered by arun-mani-j
arun-mani-j asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks, I think I found out why I'm getting this error.

I tried a fresh Tauri app and installed, dialog, fs and scope plugins there. There it worked fine 🫠.

So I tried to debug what's happening in my original app.

  1. Running tauri info showed that the plugins in original app were stuck at 2.0 but the fresh app used 2.2 variants.
  2. So I updated both JS and Cargo packages (npx npm-check-updates -u and cargo update).
  3. Then after running the original app, I got this message in console: Please make sure to register the fsplugin before thepersisted-scope plugin!.
  4. So I opened src-tauri/src/lib.rs in both fresh and original apps.
  5. In fresh app, persisted scope was loaded after fs plugin but in original…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@arun-mani-j
Comment options

Answer selected by arun-mani-j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants