-
Notifications
You must be signed in to change notification settings - Fork 23
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
How do you use this with nuxt? #26
Comments
Current latest version is for vue 3 only. You should check out the v2 branch. npm i vue-showdown@2 |
I was using 2.4.1 in the OP. |
I'll add a notice in the documentation |
@meteorlxy Like how to integrate with nuxt? I still have no idea how to do this, I'm like two days into this now :( Why is this closed? I'm able to have it functioning if I follow a URL to a page that uses VueShowdown, but if I load the page with it I get <div v-if="content">
<client-only>
<VueShowdown :markdown="content" />
</client-only>
</div> Loading it like so: import { VueShowdown } from 'vue-showdown'
...
components: {
VueShowdown,
}, Works fine on localhost. |
Well, I closed this issue because your original post is invalid usage. For v3: import { createApp } from 'vue';
import { VueShowdownPlugin } from 'vue-showdown'; For v2: import Vue from 'vue'
import VueShowdown from 'vue-showdown' What you did: import Vue from 'vue'
import { VueShowdownPlugin } from 'vue-showdown' |
Yes thank you I know what I did, none of these combinations work either way. Were you able to get either v2 or v3 working with Nuxt? I ended up just ripping it out from the source and it works fine now since it's impossible to use with Nuxt successfully. Thanks anyways. |
For those taking a look to this issue, using Nuxt 3, you have absolutely nothing to do to make it work. |
I've tried the following:
plugins/showdown.js
I've also tried:
which results in a
Cannot read property 'install' of undefined
error.nuxt.config.js
component
And I get this error:
The text was updated successfully, but these errors were encountered: