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
[Nuxt.js] Datepicker stop working on SSR #298
Comments
@juan-manuel-alberro It's fixed! |
Lovely, thanks @jtommy! |
We've also seen a similar issue with a Nuxt.js project and observed a different and somewhat non-sensical error message in the server logs related to the time/date pickers (expected Date, got Date), but wrapping the b-datepicker / b-timepicker component references in Just an FYI for anyone looking for a workaround. |
Thanks @davegriffin but maybe the correct place is this issue https://github.com/buefy/nuxt-buefy/issues |
Fair point! Googling found this first, but I'll make mention of it there as well (perhaps it can be resolved!) Thank you! |
Overview of the problem
Buefy version: 0.5.1
Vuejs version: 2.4.2
OS/Browser: Mac / Linux
Nuxt.js: 1.0.0-rc8
Description
The datepicker component works perfect in Nuxt until you refresh the page and the page is rendered in the server side, you get
navigator is not defined
Steps to reproduce
.vue
fileExpected behavior
Render the date picker without any error
Actual behavior
Page is not working since
navigator is not defined
(screenshot below)The text was updated successfully, but these errors were encountered: