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

vue-quill-editor with nuxt 3 #468

Open
Marshumov opened this issue Jan 5, 2022 · 6 comments
Open

vue-quill-editor with nuxt 3 #468

Marshumov opened this issue Jan 5, 2022 · 6 comments

Comments

@Marshumov
Copy link

Marshumov commented Jan 5, 2022

I can't get it to work in any way vue-quill-editor with nuxt 3.
Maybe there is some solution?

Code:

  1. plugin quill.client.js
    import { defineNuxtPlugin } from '#app'
    import VueQuillEditor from 'vue-quill-editor'

export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueQuillEditor)
})

  1. in page:
<script setup lang="ts"> const { $VueQuillEditor } = useNuxtApp() </script> <script lang="ts"> export default { data () { return { content: '

I am Example

', ....... other options and mounted()...... Errors: 1) in the browser: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'quill') 2) in node js Failed to resolve component: quill-editor If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
@hajime9652
Copy link

I have same issue.

@anirudhmaddy
Copy link

+1

@Alexandra536
Copy link

same

@beocaca
Copy link

beocaca commented Apr 8, 2022

help please

1 similar comment
@vanngoczta
Copy link

help please

@vanngoczta
Copy link

I solved it.
In nuxt.config.ts
ssr: false // Disable Server Side rendering

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

No branches or pull requests

6 participants