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
Buttons not showing on Nuxt.js with ssr enabled #416
Comments
Problem 1: Wrapping
Problem 2: Checking for process.client inside a function that is called inside mounted() hook is redundant, because mounted hook is never called on the server, nextTick is also redundant
Problem 3: async functions should be called with await
Problem 4: wrapping component in client-only is redundant because you use mounted, the only reason for using client-only is when you want to call something in setup or you have some logic that should be executed before component is mounted but still only on the client, here we clearly see - it's not the case
Problem 5: Plugins that are called on the client only should contain .client.ts in the name or be loaded inside plugins with a special syntax (check Nuxt docs) Problem 6: When you want to get a solution to the problem you should describe it properly, if something is not showing you probably get some errors in terminal/console, what those are? |
@Rexhmati did @AndrewBogdanovTSS's answers help solve your issue? |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. |
Using the package on Nuxt.js ( v2 ), with ssr enabled.
PayPal buttons are showing correctly on the first-page load, but are not showing anymore on the second visit.
It works only if I reload the page.
It looks like there is an issue with ssr, because it works fine with ssr disabled. But I cannot disable ssr on this project.
There is no error on the console or requests
Does anyone have any idea about this issue?
Thank you in advance
The text was updated successfully, but these errors were encountered: