weex编译报错,提示need an appropriate loader
本文介绍了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: [
...
解决方案
weex 正在从xx.we迁移到vue.js,需要使用vue的组件。并且有些组件例如wxc-tabbar,正在迁移,还在内测,所以就是无法使用的。
目前,解决方案,可以借鉴https://github.com/osmartian/...
这篇关于weex编译报错,提示need an appropriate loader的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文