happypeter / haoduoshipin

好多视频
http://haoduoshipin.com
235 stars 87 forks source link

经常性的编译报错 #437

Closed happypeter closed 6 years ago

happypeter commented 6 years ago

See our docs page on debugging HTML builds for help https://goo.gl/yL9lND

  22 |     return post.id === pid
  23 |   })
> 24 |   const metaData = selected[0].node
     |                                ^
  25 |   const prev = Number(pid) === posts.length ? false :  `/videos/${Number(pid) + 1}`
  26 |   const next = Number(pid) === 1 ? false : `/videos/${Number(pid) - 1}`
  27 |

  WebpackError: Cannot read property 'node' of undefined

应该给出对应的修改意见。

happypeter commented 6 years ago

都是 index.json 忘了改造成的。