-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Window is not defined #8
Comments
i'm having same problem :/ |
I made it work this way: Wrapped with <client-only>
<markdown-editor />
<client-only> Set { src: '~/plugins/markdown-editor.js', mode: 'client' } hope it helps! |
@vjdv Thanks for the hint! I am also using nuxt but now I get the error Edit: I accidentally used |
Usually, I use my plugin filename as // nuxt.config.js
export default {
plugins: [
'@/plugins/markdow-editor.client'
]
} That's enougth to solve problems like |
Get a error on Nuxt in node_modules/v-markdown-editor/dist/v-markdown-editor.js:10:
Error:
window is not defined
The text was updated successfully, but these errors were encountered: