NervJS / taro-ui

一款基于 Taro 框架开发的多端 UI 组件库
https://taro-ui.taro.zone
MIT License
4.52k stars 756 forks source link

用less构建的项目 使用taro-ui报错 #1071

Open weilkss opened 4 years ago

weilkss commented 4 years ago

` 🙅 编译失败.

./node_modules/_taro-ui@2.3.4@taro-ui/dist/weapp/common/component.tsx Module build failed (from ./node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js): SyntaxError: /Users/dengwei/DUIA/小程序/Mini-Exam-Certify-Home/node_modules/_taro-ui@2.3.4@taro-ui/dist/weapp/common/component.tsx: Unexpected token, expected "," (3:29)

1 | import { Component } from '@tarojs/taro' 2 |

3 | const objectToString = (style: object | string): string => { | ^ 4 | if (style && typeof style === 'object') { 5 | let styleStr = '' 6 | Object.keys(style).forEach(key => { `

taro-ui-bot[bot] commented 4 years ago

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~