Vuetify: [Bug Report] Unknown html element v-btn, ... (since update vuetify)

Created on 12 Jul 2018  路  16Comments  路  Source: vuetifyjs/vuetify

Versions and Environment

Vuetify: 1.1.4
Last working version: 1.0.13
Vue: 2.5.16
Browsers: Chrome 67.0.3396.99
OS: Mac OS 10.13.4

Steps to reproduce

Just open previous projects in Webstorm.

Expected Behavior

Same functionality as the other components (who are still in .js)

Actual Behavior

Webstorm open previous project -> all the components that are written in .ts files, aren't picked up by Webstorm.

Reproduction Link

Will try to setup jsfiddle later..
http://jsfiddle/

Other comments

It could be some configuration issue, but I don't think so.. Nothing changed except Vuetify version.

upstream

Most helpful comment

All 16 comments

Show how you're importing vuetify at least.

Do you mean this? https://youtrack.jetbrains.com/issue/WEB-32886
We can't do anything about that afaik.

Hey Kael, Sorry for the not so great issue explanation.
It is indeed the issue you linked!

Closing this issue and gonna follow up on that one, thanks for linking it!

Thanks @nekosaur for marking the dupe. Don't know how I didn't come across this in my search.

I've just noticed - creating the following file somewhere in your project (no need to importit) removes the warning:

import Vue from 'vue';

Vue.component('v-alert', {});
Vue.component('v-app', {});
...

Fantastic workaround. Thanks @jacekkarczmarczyk !

Great idea @jacekkarczmarczyk, we can probably generate that with https://github.com/vuetifyjs/api-generator. We could also include props too for even better inference than before.

@jacekkarczmarczyk Sorry to ask but even after doing this, it's still not working for me. I did put the .js with the fake components into my project... Maybe is it not working in blade files in Laravel? I did not find a way to make it work, despite Laravel blade file being seen as HTML.

Even in a blank HTML file it's not working as well. Any clue how I can get it to help me ?

Thank you.

Not sure but I think it works only for .vue files

@jacekkarczmarczyk can you upload again?

api-generator's /dist folder has been removed from git, so you can use links below for 1.4 version or clone vuetify repo and run yarn && yarn build in /packages/api-generator folder

js - https://gist.github.com/jacekkarczmarczyk/1f5a0c24803e3b16a6a6820e43fa3ef0
ts - https://gist.github.com/jacekkarczmarczyk/9003211c9b1c442435af3d551e025db7

Is there anything left to resolve with this issue?

Nope, they added it in 2018.3
https://www.jetbrains.com/webstorm/whatsnew/#v2018-3-angular-react-and-vuejs

Is it working with Vuetify v2? for me it is not!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gluons picture gluons  路  3Comments

ricardovanlaarhoven picture ricardovanlaarhoven  路  3Comments

itanka9 picture itanka9  路  3Comments

paladin2005 picture paladin2005  路  3Comments

dschreij picture dschreij  路  3Comments