Reproduction of vuejs/vuepress#1382
- yarn install
- yarn serve:before
- Visit
http://localhost:8080/foo
, open the console you'll see:
- Refresh the browser, the page renders well.
For more details of this issue, please head vuepress/issues/1382.
For now you can use the vuepress-plugin-ssr-mismatch-workaround created by VuePress's collabrator @Shigma:
yarn add vuepress-plugin-ssr-mismatch-workaround -D
// .vuepress/config.js
module.exports = {
plugins: [
['ssr-mismatch-workaround']
]
}
We've prepared a example at this repo, you can test it with running yarn serve:after
and repeating above steps, you'll find that the page works well.