@mingfuyun/star-allinone 0.0.3 → 0.0.4

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 CHANGED
@@ -442,6 +442,13 @@ function Page() {
442
442
  - Antd >= 5.27.3
443
443
  - cron-validator >= 1.4.0 (用于Cron表达式验证)
444
444
 
445
+ **重要提示**:组件库使用 `peerDependencies` 管理 React 和 Antd,确保你的项目中已安装这些依赖。如果遇到 "Invalid hook call" 错误,请检查:
446
+
447
+ 1. 确保项目中只安装了一个 React 版本
448
+ 2. 确保 React 和 React-DOM 版本匹配
449
+ 3. 如果使用 npm/yarn,可以尝试删除 `node_modules` 和锁文件后重新安装
450
+ 4. 如果使用 pnpm,确保在 `.npmrc` 中配置了 `shamefully-hoist=true` 或使用 `public-hoist-pattern[]=*react*`
451
+
445
452
  ## 🔧 开发
446
453
 
447
454
  ### 本地开发