vue-3d-model icon indicating copy to clipboard operation
vue-3d-model copied to clipboard

can't use in nuxt

Open virtualedu opened this issue 6 years ago • 2 comments
trafficstars

i tried many method use this component in vue and i saw someone ask as well here , but it was 2017, i cant use this component in vue, it keep me error it said that i not register that component yet

thought i register this in ~/plugins/ModelGltf.js

import Vue from 'vue';
import { ModelGltf } from 'vue-3d-model';

if (process.BROWSER_BUILD) {
  Vue.use(ModelGltf);
}

but still not working

virtualedu avatar Nov 06 '19 05:11 virtualedu

Can you provide a repository to reproduce it?

hujiulong avatar Nov 06 '19 06:11 hujiulong

Wrap the component in the client-only tag.

ericirish avatar Apr 19 '21 04:04 ericirish