Comments (4)
You can use the module in renderer process the same way you use it in main process. I guess you already imported the module with require on the renderer process. Anyway, it would be really helpful to see the rest of the code, if you don't mind.
from electron-store.
@bonavida The rest of my code has nothing correlation. I just copy the demo code in my file entry.I am sure that i have not required the module on other way. You can see the image below. Thanks
from electron-store.
-- small update here, and my apologies for the noise --
This does not appear to be a problem with electron-store; I believe this is a problem with your webpack config. I have seen similar questions posed on the electron forums, so I might suggest you look there for more general purpose information regarding this issue.
from electron-store.
Duplicate of #3
from electron-store.
Related Issues (20)
- Please help in renderer process with contextIsolation and no remote etc HOT 1
- feature: compatibility with zod or similar HOT 4
- After quitting the app unexpectedly, not permitted, rename 'xxx/config.json.tmp-929aed' -> 'xxx/config.json' HOT 5
- Uncaught Exception: TypeError`Use delete() ` to clear values at ElectronStore.set HOT 5
- Migrations triggered at first store setup, causing undefined behaviors HOT 4
- no space left on device error in windows system HOT 1
- ENOENT: no such file or directory HOT 1
- Doesn't work with electron-forge / electron 24.1.2 HOT 4
- The exception/error occurred when using electron-store in Vue 2. HOT 1
- Issue with store creating multiple .temp files and having issues writing to it. HOT 5
- 使用Electron-builder打包后运行程序,出现 require() of ES Module错误 HOT 1
- Required field in schema HOT 1
- Cannot change file name, it is marked readonly
- Upgrade dot-prop dependencies to v7 HOT 2
- Upgrade to latest conf HOT 5
- Error: EEXIST: file already exists, mkdir 'C:\Users\<user>\AppData\Roaming\Electron'
- Store does not work in renderer process HOT 4
- __dirname is not defined HOT 1
- Compare the advantages of lowdb
- rename config.json fail HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-store.