jd-opensource / jd-opensource/taro-ui

"taro-ui": "^2.3.4" 引用全局样式,提示找不到

Open
#1,184 5 comments 1 reaction 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/dist/weapp/index.ts
Module not found: Can't resolve './style/index.scss' in 'D:\work2020\code\myTaro
2\node_modules\taro-ui\dist\weapp'
原因
文件路径,少些了一个点
import '../style/index.scss'
import '../style/themes/red.scss'
import '../style/themes/purple.scss'

**复现步骤**

```js
// 这里可以贴代码
```

**期望行为**

**报错信息**

**系统信息**

**补充信息**

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.