Giter Club home page Giter Club logo

Comments (11)

wotamann avatar wotamann commented on July 21, 2024

I have tested this scheme and it works properly in a test. The error 'unknown custom element' may indicate that your Vuetify element 'v-select' is not correctly initialized.

Does a simple scheme work using 'v-select'?

from vuetify-form-base.

issasami avatar issasami commented on July 21, 2024

Hi! I had the same problem (

When i try to di something like this
"priority": { "type": "combobox", "items": [], "multiple": true, "label": "Priority" },

I got the same error

"vuetify": "2.3.4",
"vuetify-form-base": "0.1.22",

from vuetify-form-base.

wotamann avatar wotamann commented on July 21, 2024

"vuetify": "2.3.4",
"vuetify-form-base": "0.1.22",

You could try selection.vue from example. You can check your enviroment, by using this tested and working sample

from vuetify-form-base.

jorgv avatar jorgv commented on July 21, 2024

same problem here, following the selection example, using
"vuetify": "2.3.4",
"vuetify-form-base": "^0.1.22",

In nuxt:
"nuxt": "^2.13.0",
"@nuxtjs/vuetify": "^1.11.2",

from vuetify-form-base.

jorgv avatar jorgv commented on July 21, 2024

If you are using Nuxt I think this is the solution: #2

from vuetify-form-base.

issasami avatar issasami commented on July 21, 2024

If you are using Nuxt I think this is the solution: #2

This is not a solution to my problem. I do not use Nuxt.

Issue still reproduce with Vue + Vuetify

from vuetify-form-base.

jorgv avatar jorgv commented on July 21, 2024

@issasami But did you tried at least?
Directly importing the components in the Vue App

`import Vuetify, { VLayout, VCheckbox, VSelect } from "vuetify/lib";

Vue.use(Vuetify, {
components: { VLayout, VCheckbox, VSelect },
});`

The nuxt solution was to include it in a plugin but it should work directly in the Vue app where you initialize the app.

from vuetify-form-base.

issasami avatar issasami commented on July 21, 2024

@jorgv Yes. Works with direct import.

But as I understand it this is not how it should work

from vuetify-form-base.

Mashiane avatar Mashiane commented on July 21, 2024

from vuetify-form-base.

mcasto avatar mcasto commented on July 21, 2024

I still can't get it to work ... but, I did figure out something that might put someone else (maybe even a future version of me) on the right track:

First, I'm running a project built from vue-cli built with:
vue create [project-name]
vue add vuetify

Now ... setting vuetify-form-base aside, I just entered:
<component :is="'v-select'" />

and I got the same error: Unknown custom element: <v-select> ...

Note: now I'm just thinking "out loud" through my keyboard because maybe it'll trigger an idea for me or someone else.

So, now I think this isn't a problem with vuetify-form-base but, rather, a bug in Vue itself. If it's a Vue bug, then why does the example code work?

It looks like the example didn't install Vuetify with vue add vuetify ... it looks like vuetify was installed manually in the example. So ... maybe it's a bug in how vue add ... installs the plugin.

I just ran the following:
vue create --default component-test

In App.vue, I added <component :is="'v-select'" /> and I got the same error. That leads me to believe it is a bug with Vue, so I'll go mention it there, but, given this info, I'm completely baffled as to why the example works. Any thoughts, @wotamann ?

from vuetify-form-base.

webdo avatar webdo commented on July 21, 2024

@mcasto See #2, the last comment explain how to fix the "Unknown custom element" issue, just replace "{ VLayout, VCheckbox, VSelect }" by the components that are missing.

from vuetify-form-base.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.