I can import electron-store in dev, but getting an error in prod.
See original GitHub issueI want to use electron-store in node and web.
I can use electron-store in dev, but getting an error in prod.
When I import it this way
renderer: {
resolve() {
return ['electron-store']
}
}
dependencies: {
"electron-store": "^8.1.0"
}
I got an error in prod:
when I import it this way
renderer: {
resolve() {
return ['electron-store']
}
}
devDependencies: {
"electron-store": "^8.1.0"
}
I got an error in prod: Cannot find module ‘electron-store’
Issue Analytics
- State:
- Created a year ago
- Comments:7
Top Results From Across the Web
electron-packager does not include 'electron-store' if it's in ...
I want to use and include the 'electron-store'. I installed it with the command: "npm install electron-store -g --save-dev". In my package.json ...
Read more >Electron-packager: cannot find module
Two things you can try: Make sure every node modules that you need to run on production build added into dependencies in package.json....
Read more >Product Import SSL – Local Development
There are 91 products that don't import because of this SSL error. My local dev site is built on “Local by Flywheel” and...
Read more >streamhue/electron-store
Start using @streamhue/electron-store in your project by running ... You can use this module directly in both the main and renderer process.
Read more >Troubleshooting import
I am sure that I set up my import file according to the Ecwid CSV file format – as far as I can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
thanks @caoxiemeihao