1 .You are using the runtime-only build of Vue where the template compiler is not available. Either pre
解决办法
1 .import vue from 'vue/dist/vue.js'
分析
1 .直接 在别的文件里面使用import Vue from 'vue'
2 .得到的是vue.commmon.js版本
3 .在Vue的package.json中的main属性决定了,当项目被引入的时候,输出的是哪个文件,而Vue的package.json中的mai'n指向的是dist/vue.runntime.common.js
4 .