Pinia + Electron: Cannot use fs for Local File Access #15073
Unanswered
smithGit
asked this question in
CLI - Electron mode
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a nice Quasar Electron app that is getting big and I would like to perform all of the local file processing, both read and write, from within Pinia. However, I get the following error: Module 'fs' has been externalized for browser compatibility and cannot be accessed in client code.
Looking into this, I see a statement that Pinia: "can work in both Server and Client side." So - how can I get Pinia to work in server side mode in a manner that fs can be used? Does anyone have a good (simple) example?
Beta Was this translation helpful? Give feedback.
All reactions