MatthieuLemoine / electron-push-receiver

A module to bring Web Push support to Electron allowing it to receive notifications from Firebase Cloud Messaging (FCM).

Home Page:https://medium.com/@MatthieuLemoine/my-journey-to-bring-web-push-support-to-node-and-electron-ce70eea1c0b0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trouble Packaging

bvallier opened this issue · comments

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

Which version of Electron are you using ?

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 😅

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.

i updated to latest version:

npm install --save-dev electron@latest

All is well. Thank you!