Skip to content
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

Support for Vue 3 #23

Closed
yuideveloper opened this issue Oct 15, 2020 · 6 comments
Closed

Support for Vue 3 #23

yuideveloper opened this issue Oct 15, 2020 · 6 comments
Assignees

Comments

@yuideveloper
Copy link

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
Copy link
Owner

meteorlxy commented Oct 15, 2020

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

@meteorlxy meteorlxy self-assigned this Oct 15, 2020
@yuideveloper
Copy link
Author

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
Copy link

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
Copy link

chaozbj commented Dec 16, 2020

Got same error, please help to fix

@meteorlxy
Copy link
Owner

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

@meteorlxy
Copy link
Owner

v3.0.0 is released 🎉

Let me know if you meet any problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants