-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception from outdated electron-config module on newer version of Electron #86
Comments
Can confirm. I noticed the same issue. |
@RandomEngy I just want to say... Thank you for sharing your workaround. You probably saved me hours/days of going in circles trying to find a solution. It would have taken me entirely too long to determine that importing the constants from |
@vialoh Hi, can you please share your snippet of how you initialize the reciever? I tried using strings instead of imported event names but I still get the same error |
@weeks6 Sure! I'm using @capacitor-community/electron, and you can see how I've integrated And if you're curious as to how it's integrated into a React app: molecule-dev/molecule@b4b94cd Plus some instructions for configuring the The |
@vialoh Thanks! That helped me a great deal! |
I'm using Electron 16.0.4 and am initializing the electron-push-receiver from the isolated context preload script in the renderer process. I'm getting this error on importing the module:
It appears that v1.0 of
electron-config
is making a check:electron.app || electron.remote.app
. This throws since both are null in newer versions of Electron. It appears the new package for storing data iselectron-store
. I think it might be fixed just by updating to use that instead.I was able to work around this by using the literal strings when listening for the push events rather than trying to import the values in the preload script.
The text was updated successfully, but these errors were encountered: