-
Notifications
You must be signed in to change notification settings - Fork 102
[Bug Report] VSkeletonLoader (via VBoilerplate component shown in Vuetify Docs) not showing in production #224
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
Comments
@SumNeuron On https://gitlab.com/SumNeuron/vskel/blob/master/src/layouts/default.vue, https://vuetifyjs.com/en/components/application |
@kevinmarrec I am aware the vuetify likes to have things wrapped in To confirm, I just re-wrapped |
@SumNeuron |
@kevinmarrec Ah, you noticed. Yes, I thought it would be required to important the component a la carte and registered it. However, doing so doesn't change anything, hence why I commented it out. Current status of the file <script>
import {VSkeletonLoader} from 'vuetify/lib'
export default {
props:[],
inject: ['theme'],
functional: true,
components: {VSkeletonLoader},
render (h, { data, props, children }) {
return h('v-skeleton-loader', {
...data,
props: {
...props,
},
}, children)
},
}
</script> and no skeleton showing in deployment |
I think it's cause docker doesn't install |
|
Nvm, seems it's not that, well try using component through Overall I think this issue it not related to the module, but more likely how you're trying to build the component. |
@kevinmarrec i just moved vuetify from devDependencies to dependencies to test the theory... and you are right, that is not the case.... Nonetheless the vuetify team think it is the module: vuetifyjs/vuetify#9865 (hence me posting here). How would I do what you suggest? I just took VBoilerplate from the vuetify documentation |
@SumNeuron Vue functional components doesn't support import { VSkeletonLoader } from 'vuetify/lib'
export default {
props:[],
inject: ['theme'],
functional: true,
render (h, { data, props, children }) {
return h(VSkeletonLoader, {
...data,
props: {
...props,
},
}, children)
},
} Works for me in both Vuetify core components do it as well : If you're wondering why it was working in This is not something you can do anymore with v2 alpha of the Nuxt module, I think you should have everything you need right here, so please consider closing the issue afterwards :) |
@kevinmarrec yup that does it! would have taken me forever to figure that out. Thank you very much. As |
@SumNeuron No problem. I'll inform them 😉 |
Module version
The version of the module you're using.
Latest
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Reproduction Link
https://gitlab.com/SumNeuron/vskel
Expected behavior
A clear and concise description of what you expected to happen.
"It just works", no extra configuration between dev and production for vskeletonloader / vboilerplate
Screenshots
Checkout the deployed gitlab page https://sumneuron.gitlab.io/vskel/ vue tools are enabled)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: