Open xzjcool opened 4 years ago
I have the same issue.
Don't webpack keytar it's a native module. Rather use remote.require("keytar")
from your renderer process, if you want to uses that way.
If used with something like electron builder; it will compile and include the node_module package correctly.
Description
I use keytar in electron app to store files in keychain, After building and deploying, i open the app on another pc/mac, an error occured and said the keytar's path is an absolute path which depend on the build pc's environment. I tried node-loader and awesome-node-loader in webpack. still can't work. Any suggestion?
Steps to Reproduce
Expected behavior:
Actual behavior:
Reproduces how often:
Versions
Additional Information