meteorlxy / vue-showdown

:page_with_curl: Use showdown as a vue component
https://vue-showdown.js.org
MIT License
129 stars 23 forks source link

Support for Vue 3 #23

Closed yuideveloper closed 3 years ago

yuideveloper commented 4 years ago

Hello,

I attempted to add Vue Showdown into a Vue 3 app following the steps shown here. Unfortunately, the component does need seem to render. Is Vue Showdown compatible with Vue 3? Is the a JSFiddle or otherwise that proves this out?

Thank you.

meteorlxy commented 4 years ago

The guide is for Vue2.

For Vue3, you have to const app = createApp() and app.use() ...

(Not tested, but it might work)

I'll find time to upgrade to Vue 3

yuideveloper commented 4 years ago

Thank you for your willingness to look into this. If this helps, I currently receive the following:


Component is missing template or render function.
``
BedfordWest commented 3 years ago

I'm getting this even in Vue2 despite following the instructions in the README and on the website. Specifically:

vue.runtime.esm.js?2b0e:619 [Vue warn]: Failed to mount component: template or render function not defined.

found in

---> <VueShowdown>
       <Description> at src/components/Description.vue
         <Pane>
           <Splitpanes>
             <Pane>
               <Splitpanes>
                 <Day> at src/components/Day.vue
                   <App> at src/App.vue
                     <Root>
chaozbj commented 3 years ago

Got same error, please help to fix

meteorlxy commented 3 years ago

Busy developing VuePress 2 these days. I'll upgrade this lib soon

meteorlxy commented 3 years ago

v3.0.0 is released :tada:

Let me know if you meet any problems.