Skip to content
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

OneSignal loaded twice in built SPA #6

motia opened this issue Mar 8, 2019 — with CMTY · 4 comments

OneSignal loaded twice in built SPA #6

motia opened this issue Mar 8, 2019 — with CMTY · 4 comments


Copy link

motia commented Mar 8, 2019



Reproduction link

Steps to reproduce

git clone
yarn nuxt build

The SPA must be served on the domain other.test, otherwise you must change use your key.

What is expected ?

The script is loaded once form built SPA.

What is actually happening?


Additional comments?

This bug should not be problematic, because the script is loaded from a cdn with long cache.

This bug report is available on Nuxt community (#c106)
Copy link

pi0 commented Mar 17, 2019

Hi and thanks for the report. This is normal that two onesignal related js files added (one is for update checks) but they should not be identical like the image above.


I've added a fix to ensure this behavior. Please check it on latest version and ping me if problem still happens.

@pi0 pi0 closed this as completed Mar 17, 2019
Copy link

8ctopotamus commented Mar 22, 2019

I have this issue too. Do I just reinstall the Nuxt PWA module in order to fix this?

Copy link

motia commented Apr 30, 2019

yes. the problem persists.

Copy link

EricBois commented Nov 13, 2019

i have the same problem

@pi0 pi0 transferred this issue from nuxt-community/pwa-module Apr 16, 2020
@pi0 pi0 reopened this Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

4 participants