Vue: Scoped styles not working on SSR

Created on 16 Jul 2017  路  2Comments  路  Source: vuejs/vue

Version

2.4.1

Reproduction link

https://github.com/vuejs/vue-hackernews-2.0/issues/229

Steps to reproduce

What is expected?

the h1 in red color

What is actually happening?

You wont see the h1 in red when loading from server, insted if you load the page throught the router you will see

need repro

Most helpful comment

This is caused by a bug in vue-loader and should be resolved after you upgrade vue-loader to 12.2.2 or 13.0.2.

All 2 comments

Can you provide an actual reproduction? The hackernews repo is running on 2.4.1 and using scoped styles, and it renders with styles from the server, so what's the eel scenario that is not working for you? Please fork the repository and edit it so it demonstrates the issue.

This is caused by a bug in vue-loader and should be resolved after you upgrade vue-loader to 12.2.2 or 13.0.2.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wufeng87 picture wufeng87  路  3Comments

robertleeplummerjr picture robertleeplummerjr  路  3Comments

loki0609 picture loki0609  路  3Comments

gkiely picture gkiely  路  3Comments

seemsindie picture seemsindie  路  3Comments