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

Build Error - Document is not defined #33

Open
conjack27 opened this issue May 7, 2021 · 1 comment
Open

Build Error - Document is not defined #33

conjack27 opened this issue May 7, 2021 · 1 comment

Comments

@conjack27
Copy link

image

@davestewart
Copy link

davestewart commented Feb 2, 2022

Just installed and built for the first time in VuePress and got the same.

I was using the ssr property which I removed and no difference.

Wrapping the component in VuePress' <ClientOnly> allowed it to work properly.

I'm not 100% sure at what stage of the render it was trying to access document but I think it would be worth looking into seeing as the lib as advertised as "SSR-compatible".

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