leaferjs / leafer-ui

一款好用的 Canvas 引擎,革新的开发体验,用于高效绘图 、UI 交互、图形编辑。A user-friendly Canvas engine with a revolutionary development experience, for efficient drawing, UI interactions, and graphic editing.
https://www.leaferjs.com
MIT License
2.59k stars 92 forks source link

[bug] 部分依赖转变为 peer 后无法自动更新 #274

Open Ronbb opened 5 days ago

Ronbb commented 5 days ago

使用pnpm,参考 https://github.com/pnpm/pnpm/issues/8081

目前需要将没有成功更新的依赖添加到dependencies。也许可以考虑在类似leafer-editor包内直接添加基础依赖。

参考依赖树:

$  pnpm why @leafer-in/color

dependencies:
leafer-editor 1.0.10
├─┬ @leafer-editor/web 1.0.10
│ ├─┬ @leafer-editor/partner 1.0.10
│ │ └─┬ @leafer-in/editor 1.0.10
│ │   └── @leafer-in/resize 1.0.9 peer
│ └─┬ @leafer-in/text-editor 1.0.10
│   └─┬ @leafer-in/editor 1.0.10 peer
│     └── @leafer-in/resize 1.0.9 peer
├─┬ @leafer-in/editor 1.0.10
│ └── @leafer-in/resize 1.0.9 peer
└─┬ @leafer-in/text-editor 1.0.10
  └─┬ @leafer-in/editor 1.0.10 peer
    └── @leafer-in/resize 1.0.9 peer

参考依赖升级:

$ pnpm upgrade -L -r --verbose

 WARN  Issues with peer dependencies found
.
├─┬ @leafer-in/editor 1.0.10
│ └── ✕ unmet peer @leafer-in/resize@^1.0.10: found 1.0.9
└─┬ @leafer-in/animate 1.0.10
  └── ✕ unmet peer @leafer-in/color@^1.0.10: found 1.0.9
leaferjs commented 5 days ago

get 了, 之前是在插件中依赖的(这次改为peer),解决了另一个使用老版本的问题,看来得把这两个包放到leafer-editor中才能完全解决问题

Ronbb commented 4 days ago

@leaferjs 说起来我可以发英文的issue吗 😀

leaferjs commented 4 days ago

@leaferjs 说起来我可以发英文的issue吗 😀

可以的,不过我英文一般,简单的问题可以用英文(像这个问题),要是沟通比较复杂的问题,建议可以同时配一个中文,避免没理解到位😀,后面开始推广国外,我估计也得提升一下英语~