引入taro-ui后编译一直有一个警告,在网上没搜到怎么解决

来源:3-1 tab页和分类

langxy

2019-02-01 14:21

https://img3.mukewang.com/5c53e5420001664f04980090.jpg

引入taro-ui后编译一直有一个警告,在网上没搜到怎么解决

写回答 关注

2回答

  • Ooooooops
    2019-03-21 16:00:24

    这个问题我也遇到了

    我是这么做的

    https://img2.mukewang.com/5c93437e0001d11f09870555.jpg

    停止服务器,重新编译

    然后就正常了




  • 慕粉3824733
    2019-02-24 18:40:33

    官网上有说(https://taro-ui.aotu.io/#/docs/quickstart): 

    引入h5配置 

    h5: {
     esnextModules: ['taro-ui']
    }

    再引入所需要的组件 

    import 'taro-ui/dist/style/index.scss' // 全局引入一次即可

    就可以了

Taro多端框架开发外卖首页

Taro 一套代码多端运行的框架,带你掌握Taro开发基本语法,以及项目开发

22910 学习 · 82 问题

查看课程

相似问题