Closed baydiwo closed 3 years ago
I'm a bit out of the loop with the Vue 2 version and Nuxt, but is it possible to define your type components as Vue components rather than functions? I don't recall if that ever worked or not.
I'd also suggest looking at the @nuxtjs/sanity plugin if you're sticking with Vue 2 as that is most likely more actively maintained for that version. I'll still accept PRs for versions <1.x
but plan on dedicating the time I have to supporting Vue 3.
Hi @rdunk thanks for your reply, I've tried using @nuxtjs/sanity but the error still same,
WARN Cannot stringify a function fullWidthImage
WARN Cannot stringify a function videoEmbed
I'm using "nuxt": "^2.15.6", the problem is only when I set ssr: true.
Have you tried defining your type serializers as Vue components (as you've done with marks)?
Hi, thank you for your assist, I still stuck for few days so I move to block-content-to-html.
No worries. If you want to discuss this further I'll reopen the ticket.
I have created 2 custom serializer types, when develop using ssr: false, all images and video iframe shows up correctly, but when using ssr: true, there's and error in nuxt generate, when in browser, all custom types is showing at first load then disappearing. this is my nuxtJs code:
sanityImageCaption components
error message from nuxt generate
I've tried using client-only but it seems not solving the problem