File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919有!
2020可以加入[ 组件库互助 QQ 群] ( /guide/join-group.html ) ,分享心得、交流体会。
2121
22+ ## Sass抛出大量错误和警告?
23+ ` Dart Sass 3.0.0 ` 废弃了一批API,而组件库目前还未兼容,因此请确保你的` sass ` 版本为` 1.78.0 ` 及之前的版本。可以通过以下命令安装指定版本:
24+ ::: code-group
25+ ``` bash [npm]
26+ npm i sass@1.78.0 -D
27+ ```
28+
29+ ``` bash [yarn]
30+ yarn add sass@1.78.0 -D
31+ ```
32+
33+ ``` bash [pnpm]
34+ pnpm add sass@1.78.0 -D
35+ ```
36+ :::
2237
2338## 小程序样式隔离
2439
Original file line number Diff line number Diff line change @@ -42,6 +42,26 @@ pnpm add wot-design-uni
4242下载地址:<a href =" https://ext.dcloud.net.cn/plugin?id=13889 " ><span >wot-design-uni</span ></a >
4343
4444
45+ ## Sass
46+ ` Wot Design Uni ` 依赖 ` sass ` ,因此在使用之前需要确认项目中是否已经安装了 ` sass ` ,如果没有安装,可以通过以下命令进行安装:
47+ ::: code-group
48+ ``` bash [npm]
49+ npm i sass -D
50+ ```
51+
52+ ``` bash [yarn]
53+ yarn add sass -D
54+ ```
55+
56+ ``` bash [pnpm]
57+ pnpm add sass -D
58+ ```
59+ :::
60+
61+ ::: warning 提醒
62+ ` Dart Sass 3.0.0 ` 废弃了一批API,而组件库目前还未兼容,因此请确保你的` sass ` 版本为` 1.78.0 ` 及之前的版本。参见参见[ 常见问题] ( /guide/common-problems.html#sass抛出大量错误和警告 ) 。
63+ :::
64+
4565## 配置
4666
4767### 导入组件
You can’t perform that action at this time.
0 commit comments