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

Nuxt JS document is not defined #131

Closed
AlexanderBelkevich opened this issue Dec 13, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@AlexanderBelkevich
Copy link

commented Dec 13, 2018

Hi!
Please help me! Why in nuxt js project error 'document is not defined'?
I tried installing through plugins and ssr: false - not working(

@AveryBibeau

This comment has been minimized.

Copy link

commented Dec 14, 2018

I'm using tiptap with Nuxt and have gotten it to work by wrapping the editor in a <no-ssr> tag and initializing the editor in the component's mounted rather than in data. I don't have it installed as a plugin, just imported in an editor component

@AlexanderBelkevich

This comment has been minimized.

Copy link
Author

commented Dec 15, 2018

Are you using tiptap-extensions too? The problem appears when using it. In any case, I will try your advice today :)

@AlexanderBelkevich

This comment has been minimized.

Copy link
Author

commented Dec 15, 2018

I'm using tiptap with Nuxt and have gotten it to work by wrapping the editor in a <no-ssr> tag and initializing the editor in the component's mounted rather than in data. I don't have it installed as a plugin, just imported in an editor component

Thanks. It's working! The problem was 'data'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.