bi-components-library 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,11 +5,40 @@
|
|
|
5
5
|
## 📦 安装
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install
|
|
8
|
+
npm install bi-components-library
|
|
9
9
|
# 或
|
|
10
|
-
yarn add
|
|
10
|
+
yarn add bi-components-library
|
|
11
11
|
# 或
|
|
12
|
-
pnpm add
|
|
12
|
+
pnpm add bi-components-library
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## ⚠️ 重要提示:React 版本一致性
|
|
16
|
+
|
|
17
|
+
**如果使用 pnpm,请确保 `react` 和 `react-dom` 版本完全一致**,否则会出现版本不兼容错误。
|
|
18
|
+
|
|
19
|
+
### 解决方案
|
|
20
|
+
|
|
21
|
+
在您的项目 `package.json` 中添加 `pnpm.overrides` 配置:
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"pnpm": {
|
|
26
|
+
"overrides": {
|
|
27
|
+
"react": "19.1.1",
|
|
28
|
+
"react-dom": "19.1.1"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
然后运行:
|
|
35
|
+
```bash
|
|
36
|
+
pnpm install
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
或者直接安装统一版本:
|
|
40
|
+
```bash
|
|
41
|
+
pnpm add react@19.1.1 react-dom@19.1.1
|
|
13
42
|
```
|
|
14
43
|
|
|
15
44
|
## 🚀 快速开始
|