vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report] Vuetify Components not rendering correctly when using local registration with SSR

Open michael-tugby opened this issue 8 years ago • 2 comments

Versions and Environment

Vuetify: 0.17.4 Vue: 2.5.9 Browsers: Chrome 62.0.3202.94 OS: Mac OS 10.13.1

Steps to reproduce

Import any vuetify component using local registration with SSR (using Nuxt for this example).

Expected Behavior

The vuetify component to render as expected with the server-rendered content before hydration.

Actual Behavior

The vuetify component CSS appears to be off, but quickly corrects itself following hydration.

Reproduction Link

https://github.com/Icestorm05/nuxt-vuetify-local-test.git

Other comments

This only happens when using local registration with the components. Registering them globally with Vue.use works as expected.

However, this quickly results in a bloated bundle size and a warning from webpack telling me that a bundle has exceeded the 300kb recommended limit. I would think it would be more ideal to use local registration to split the bundles up based on route?

michael-tugby avatar Dec 06 '17 10:12 michael-tugby

The styles aren't loaded until JS runs, because they are embedded in the JS in development mode. A production build will extract the css into a common.css file to be loaded before hydration.

KaelWD avatar Dec 07 '17 06:12 KaelWD

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

lock[bot] avatar Apr 15 '19 05:04 lock[bot]