sheexiao
发布于

最新的master分支的sites似乎npm run dev跑不起来?

出现以下的错误:似乎是一些tag有问题,但是看commit历史又发现早已有之。还望大佬赐教。

  
ERROR  Failed to compile with 2 errors                                                          friendly-errors 17:17:53  
  
  
 ERROR  in ./pages/article/_id.vue                                                               friendly-errors 17:17:53  
  
Module Error (from ./node_modules/eslint-loader/dist/cjs.js):                                    friendly-errors 17:17:53  
  
/home/shexiao/桌面/Origin/bbs-go/site/pages/article/_id.vue  
 48:18  error  Parsing error: Unexpected closing tag "div". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags  prettier/prettier  
  
✖ 1 problem (1 error, 0 warnings)  
  
 friendly-errors 17:17:53  
 @ ./.nuxt/router.js 205:24-207:3  
 @ ./.nuxt/index.js  
 @ ./.nuxt/client.js  
 @ multi eventsource-polyfill webpack-hot-middleware/client?reload=true&timeout=30000&ansiColors=&overlayStyles=&name=client&path=/__webpack_hmr/client ./.nuxt/client.js  
 friendly-errors 17:17:53  
  
 ERROR  in ./pages/article/_id.vue?vue&type=template&id=a30a8e90&scoped=true&                    friendly-errors 17:17:53  
  
Module Error (from ./node_modules/vue-loader/lib/loaders/templateLoader.js):                     friendly-errors 17:17:53  
(Emitted value instead of an instance of Error)   
  
 Errors compiling template:  
  
 tag <span> has no matching end tag.  
  
 33 |                </span>  
 34 |   
 35 |                <span  
 |                ^^^^^  
 36 |                  v-if="article.tags && article.tags.length > 0"  
 |  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
 37 |                  class="article-meta-item"  
 |  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
 38 |                >  
 |  ^^^^^^^^^^^^^^^  
  
 tag <article> has no matching end tag.  
  
 3  |    <div class="container main-container left-main size-320">  
 4  |      <div class="left-container">  
 5  |        <article  
 |        ^^^^^^^^  
 6  |          class="article-item article-detail"  
 |  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
 7  |          itemscope  
 |  ^^^^^^^^^^^^^^^^^  
 8  |          itemtype="http://schema.org/BlogPosting"  
 |  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
 9  |        >  
 |  ^^^^^^^  
  
 friendly-errors 17:17:53  
 @ ./pages/article/_id.vue?vue&type=template&id=a30a8e90&scoped=true& 1:0-213 1:0-213  
 @ ./pages/article/_id.vue  
 @ ./.nuxt/router.js  
 @ ./.nuxt/index.js  
 @ ./.nuxt/client.js  
 @ multi eventsource-polyfill webpack-hot-middleware/client?reload=true&timeout=30000&ansiColors=&overlayStyles=&name=client&path=/__webpack_hmr/client ./.nuxt/client.js
浏览 (582)
点赞
收藏
3条评论
大喵喵酱
大喵喵酱

哈哈,正好在看论坛,就看到了你发的提问题。欢迎以后多交流。

点赞
评论
sheexiao
sheexiao

感谢这么快回复,pull了一下之后确实好了。谢谢!

点赞
评论
大喵喵酱
大喵喵酱

这个确实有问题,应该是之前手误提交的,我在使用过程中也遇到了,并已经修改过来了。 请重新更新一下代码。

点赞
评论