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
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:
語法錯(cuò)誤:出現(xiàn)不該出現(xiàn)的{
我一直以為語法錯(cuò)誤是很好解決的兼犯,找到那個(gè)地方改一下就行了捂蕴。然而這一次卻不是這樣员淫,我找到了那個(gè)vue文件,修改了好多次怀骤,直到我把所有的style都注釋掉费封,才沒有顯示此錯(cuò)誤〗祝可是很奇怪啊弓摘,明明我的語法又沒錯(cuò)。我覺得很可能又是版本問題痕届,降級(jí)了webpack后韧献,別的地方又報(bào)錯(cuò),gg研叫。
后來折騰了好久锤窑,發(fā)現(xiàn)又是版本號(hào)問題,將node弄為6就好了嚷炉。:)
6比較穩(wěn)定渊啰。:)
反正最后的總結(jié)就是一定要看看官網(wǎng)的穩(wěn)定版的是哪個(gè),簡直是血淚史:)