[Vuejs]-TypeError: Cannot read properties of null in the template tag

0👍

next(vm => ...) callback is triggered after the instance is created, the state that is initialized there shouldn’t be relied on because initial rendering occurs with uninitialized state.

It should be either:

return {
  post: [],
  ...

Or:

<article v-if="post" ...>

Leave a comment