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
Current Behavior
When I use
<d-button-group>
in Nuxt, It will be shows these error:and my code was:
Steps to Reproduce
<d-button-group>
this component, and withSSR
mode in Nuxt.js.Thanks.