jd-opensource / jd-opensource/taro-ui

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

Open
#1,071 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

`
🙅 编译失败.

./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 => {
`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.