paramander / contentful-rich-text-vue-renderer

Render Contentful Rich Text field using Vue
https://www.npmjs.com/package/contentful-rich-text-vue-renderer
MIT License
38 stars 12 forks source link

Not working on nuxt3 #43

Closed bootsmann1995 closed 2 years ago

bootsmann1995 commented 2 years ago

The rich text renderer is not working on nuxt 3? is it possible to make this asap?

tolgap commented 2 years ago

@bootsmann1995 which version are you using. There is a preview version for Vue 3 contentful-rich-text-vue-renderer@next. If you're already on this version: do you have an error or a reproduction of this error?

bootsmann1995 commented 2 years ago

Hey, i rewrote your component. It was missing a small thing to work in nuxt3.

Your export default was changed to export default defineNuxtComponent(…

plus i added some more strong types to props. I Can send the version if you want?

tolgap commented 2 years ago

@bootsmann1995 this library is not for Nuxt specific code. This is a Vue component only.

bootsmann1995 commented 2 years ago

Okay, no problem. Only if you wanted to add a nuxt module for it.