You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check out [vuetify-date](https://github.com/vuetifyjs/nuxt-module/blob/main/src/runtime/plugins/vuetify-date.ts) plugin and the [date module](https://github.com/vuetifyjs/nuxt-module/blob/main/src/runtime/plugins/date.ts) for an example of a custom date adapter and how to access to the configuration.
30
+
31
+
## Troubleshooting
32
+
33
+
### `useDate()` — call methods on the instance, don't destructure them
34
+
35
+
`useDate()` returns a Vuetify date adapter instance whose methods rely on `this`.
36
+
Destructuring them detaches `this`, which throws during SSR (e.g.
37
+
`Cannot read properties of undefined (reading 'locale')`). In dev the error is
38
+
swallowed and the page falls back to client rendering, so it only surfaces after
ctx.logger.warn(`[vuetify-nuxt-module] date-fns locale for "${ctx.vuetifyOptions.locale?.locale??'(unset)'}" not found, falling back to "enUS". Set "vuetifyOptions.locale.locale" to a supported locale.`)
0 commit comments