Identifier ‘messaging’ has already been declared
-
Dear PWA for WP team,
Thank you for creating such a useful plugin.
I wanted to use it, but I encountered a problem with pwa-register-sw.js.
A global variable named “messaging” seems to be declared twice in line 3.
I tried to replace it with :if (typeof messaging === “undefined”) { const messaging = firebase.messaging(); }
and it seemed to work for me.I understand that this may not be your fault, but I would appreciate it if you could take this case into account.
Thank you in advance.
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Identifier ‘messaging’ has already been declared’ is closed to new replies.