superman66 / vue2.x-douban

Vue2.0实现简易豆瓣电影webApp
http://superman66.github.io/vue2.x-douban/dist/#/
799 stars 292 forks source link

运行npm run dev报错 #7

Closed deepred5 closed 7 years ago

deepred5 commented 7 years ago
ERROR in ./~/vue-loader/lib/template-compiler.js?id=data-v-18ded60a!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/header.vue

  Vue template syntax error:

  text ">" outside root element will be ignored.
deepred5 commented 7 years ago

修改header.vue后,访问http://localhost:8888 控制台报错,无法加载

Uncaught (in promise) TypeError: Cannot create property 'type' on string '<html><frameset> <frame id='top' src="http://172.30.2.1/disable/disable.htm"><noframes> <body>Your browse does not support frame!</body> </noframes> </frameset> </html>'
superman66 commented 7 years ago

有没有详细点的错误信息,或者贴出你改动的代码。仅靠这些好像难以判断错误的原因

deepred5 commented 7 years ago

好像是网络问题,所以访问不到豆瓣api,现在可以了。不过你的header.vue好像有语法问题,多了个>,最好改下。

superman66 commented 7 years ago

@deepred5 多谢提醒,已经更改了

bxychy commented 7 years ago

ERROR in %1 is not a valid Win32 application. \?\G:\My_object\vue-Example\vue2.x-douban\node_modules\node-sass\vendor\win32-x64-51\binding.node @ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-0b49e836!./~/sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue 4:14-240 13:2-17:4 14:20-246

运行报这个错误,没改任何代码刚拉下来。刚刚npm....

deepred5 commented 7 years ago

node-sass可能没安装成功。可以使用cnpm下载看看。

bxychy commented 7 years ago

好的我试试