Closed
Description
Version
2.5.17
Reproduction link
https://github.com/sqal/vue-ssr-bug-reproduction
Steps to reproduce
- Clone, install dependencies
- run
npm run ssr:serve
What is expected?
Should render the app.
What is actually happening?
When you start the server you should see that application throws following error: Cannot read property '$store' of undefined
. This happens because in SSR computed property don't receive component's instance as the first argument, therefore I cannot access $store
property. I am not sure if this is a bug or not, I think it is because i could not find anything about in vue or vue-ssr docs. I would appreciate if someone could clarify this issue. Thank you :)