Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug? Vuetify is broken when tree-shaking is enabled and this lib is used. #31

Open
larzon83 opened this issue Aug 10, 2019 · 0 comments

Comments

@larzon83
Copy link

Info: I asked the same question on nuxt-svg-loader since it uses this lib in the background: Developmint/nuxt-svg-loader#53

Hey,

I currently use Vuetify (1.5.16) in my nuxt-app. I also use vuetify-loader to only include the used components. However, after installing this module my whole app looks like crap. The console is full of these messages:
[Vue warn]: Unknown custom element: did you register the component correctly?
It seems like the vuetify-loader rules getting overwritten or something like that.

Vuetify is implemented as a plugin, as this was the standard way before the nuxt/vuetify module.
I therefore quickly created a fresh/new nuxt-app with the nuxt-vuetify-module. After enabling tree-shaking (a must, to use vuetify-loader under the hood), the app breaks as well. See attached screenshot. Without tree-shaking, everything is fine.
BTW: the beautiful red icon is a svg with css styling shows that your module is working.

I don't know, if this should be fixed on your side or vuetify-loader? Any ideas?

Bildschirmfoto 2019-08-07 um 23 36 15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant