MatthieuLemoine / electron-push-receiver

A module to bring Web Push support to Electron allowing it to receive notifications from Firebase Cloud Messaging (FCM).
https://medium.com/@MatthieuLemoine/my-journey-to-bring-web-push-support-to-node-and-electron-ce70eea1c0b0
MIT License
191 stars 62 forks source link

Trouble Packaging #39

Closed bvallier closed 5 years ago

bvallier commented 5 years ago

Notifications work fine in development, but when I build the app and run in production it fails with the following message:

screenshot 2018-11-19 12 38 45
MatthieuLemoine commented 5 years ago

Which version of Electron are you using ?

bvallier commented 5 years ago

v1.7.9

MatthieuLemoine commented 5 years ago

push-receiver requires at least v1.8.1 for async/await support. You could build it using babel if you really need to support electron 1.7

PS: Now I see that I made a typo and the peer dependency warning is not shown 😅

bvallier commented 5 years ago

Alright, thought that could be it. Let me upgrade and I can confirm back here. Thanks for the library - you've done a nice job.

bvallier commented 5 years ago

i updated to latest version:

npm install --save-dev electron@latest

All is well. Thank you!