eclipsesource / jsonforms-vuetify-renderers

https://jsonforms-vuetify-renderers.netlify.app/
Other
26 stars 26 forks source link

Possible to use external Vuetify? #25

Open davidpede opened 2 years ago

davidpede commented 2 years ago

Not sure if a bug or feature request but is it possible to use these renderers if Vuetify is not bundled in the build?

We have Vue 2.6.14 and Vuetify 2.6.0 already available to the page so are trying to set them as externals in webpack:

externals: {
            vue: 'Vue',
            vuetify: 'Vuetify',
            'vuetify/lib': 'Vuetify'
        }

No errors in the build but console shows:

lib.main.js:2916 [Vue warn]: Unknown custom element: <v-container> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
lib.main.js:2916 [Vue warn]: Unknown custom element: <v-row> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
lib.main.js:2916 [Vue warn]: Unknown custom element: <v-col> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
lib.main.js:2916 [Vue warn]: Unknown custom element: <v-container> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
lib.main.js:2916 [Vue warn]: Unknown custom element: <v-row> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
lib.main.js:2916 [Vue warn]: Unknown custom element: <v-col> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
lib.main.js:2916 [Vue warn]: Unknown custom element: <v-hover> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
lib.main.js:2916 [Vue warn]: Unknown custom element: <v-col> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

etc etc

Works perfectly if I remove the 'vuetify/lib': 'Vuetify' part, but then Vuetify is compiled in the bundle.

Should this be possible and if not could it be?

sdirix commented 2 years ago

Can you explain in more detail what the issue is? We don't bundle Vue or Vuetify so there should be no problem for you.