阿里的weex框架在4月更新了版本,根据官方的教程,使用weex-toolkit v-1.01之后的版本创建vue项目,并参考教程,搭建了整个项目,然后运行。http://weex.apache.org/cn/guide/set-up-env.html
整个项目的目录如下:
但是当执行npm run serve之后,打开浏览器http://localhost:8080/index.html,出现了手机界面,但内容是空白的,仔细查找原因,在执行了npm run serve的cmd中发现/node_modules/weex-vue-render/index.js 404 12ms,说明在这个路径下,没有找到index.js这个文件。
因此,打开这个路径确认一下,发现确实没有index.js