weex编译报错,提示need an appropriate loader

新手上路,请多包涵

列表项目

添加wxc-tabbar到代码中,使用npm run build 编译,报错

You may need an appropriate loader to handle this file type

报错信息图片

代码

<template>
  <div>
    <wxc-tabbar :tab-items="tabItems"></wxc-tabbar>
  </div>
</template>
<script>
  require('weex-components');
  module.exports = {
    data: {
      dir: 'examples',
      tabItems: [
      ...
阅读 3.5k
1 个回答
✓ 已被采纳新手上路,请多包涵

weex 正在从xx.we迁移到vue.js,需要使用vue的组件。并且有些组件例如wxc-tabbar,正在迁移,还在内测,所以就是无法使用的。
目前,解决方案,可以借鉴https://github.com/osmartian/...

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进