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

Component not rendering correctly on production build #52

Closed
maikbeeldr opened this issue Jan 12, 2024 · 5 comments
Closed

Component not rendering correctly on production build #52

maikbeeldr opened this issue Jan 12, 2024 · 5 comments

Comments

@maikbeeldr
Copy link

maikbeeldr commented Jan 12, 2024

Hi Gaillaume,

Thank you for your plugin. It's working great on my Nuxt 2 website in development mode, but I am encountering difficulties in production mode. I've just added a question on Stackoverflow, since I am not entirely sure if the problem lies in my Nuxt installation or the package itself.

https://stackoverflow.com/questions/77805521/component-output-renders-incorrectly-after-running-nuxt-production-build

I am at a loss here, hoping you can point me to the right direction for a solution. I can share the production URL with you if you like.

Screenshot 2024-01-12 at 10 16 24 Screenshot 2024-01-12 at 10 14 03
@guillaumebriday
Copy link
Owner

Did you try to disable SSR?

@maikbeeldr
Copy link
Author

On the plugin or on the Nuxt install? My site is a headless server side rendered website.

@kissu
Copy link

kissu commented Jan 13, 2024

You could wrap the component into a client-only since it doesn't add a lot of value for SEO anyway.
Forcing your whole Nuxt app to be SEO-only is quite a big constraint.

@maikbeeldr
Copy link
Author

Thanks @kissu, that did the trick!

@kissu
Copy link

kissu commented Jan 15, 2024

I guess we can mark this as completed. 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants