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

Error on d-button-group. #19

Open
maxchou415 opened this issue May 10, 2019 · 0 comments
Open

Error on d-button-group. #19

maxchou415 opened this issue May 10, 2019 · 0 comments

Comments

@maxchou415
Copy link

maxchou415 commented May 10, 2019

Current Behavior

When I use <d-button-group> in Nuxt, It will be shows these error:

[Vue warn]: Error in beforeCreate hook: "ReferenceError: document is not defined"

found in

---> <DButtonGroup> at /Users/hisk/Projects/GitHub/shards-vue/src/components/button-group/ButtonGroup.vue

and my code was:

<d-button-group>
        <d-button>Left</d-button>
        <d-button>Middle</d-button>
        <d-button>Right</d-button>
</d-button-group>

Steps to Reproduce

  1. Just use <d-button-group> this component, and with SSR mode in Nuxt.js.

Thanks.

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

1 participant