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

window is not defined #89

Open
nodirnavruzov opened this issue May 3, 2021 · 1 comment
Open

window is not defined #89

nodirnavruzov opened this issue May 3, 2021 · 1 comment

Comments

@nodirnavruzov
Copy link

nodirnavruzov commented May 3, 2021

How can I use the editor with nuxt if my project is with ssr?

nuxt.config.js

      ssr: true

      plugins: [
        {
          src: '~ / plugins / vue-editor.js',
          ssr: false,
        }
      ],

plugins
            - vue-editor.js
          
    import Vue from 'vue'
                      import Editor from 'vue-editor-js/src/index'
                      Vue.use(Editor)

components
                    - editor.vue
                           <client-only>
                            <editor ref = "editor": config = "config" />
                          </client-only>

An error is displayed 'window is not defined'

@chisomgbata
Copy link

I am having same error, it started when i added the Header plugin, Have you fixed your's

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

2 participants