problem1:
when i start my webpack ,it has a problem:Path must be a string.
錯誤信息
hm..see the problem,i checked my path at first,but nothing.later,i went to stack overflow and issues to find the resolution.howerver,so many people agree with that downgraded to node 5.
finally,it works
work
problem2:
in The node API for "babel" has been moved to "babel-core"
solution:
1.uninstall babel
2.install babel-core
3.fix webpack.config.js and package.json
problem3:
語法錯誤:出現不該出現的{
error info
我一直以為語法錯誤是很好解決的,找到那個地方改一下就行了。然而這一次卻不是這樣,我找到了那個vue文件,修改了好多次,直到我把所有的style都注釋掉,才沒有顯示此錯誤。可是很奇怪啊,明明我的語法又沒錯。我覺得很可能又是版本問題,降級了webpack后,別的地方又報錯,gg。
后來折騰了好久,發現又是版本號問題,將node弄為6就好了。:)
6比較穩定。:)
反正最后的總結就是一定要看看官網的穩定版的是哪個,簡直是血淚史:)