canvas-ui icon indicating copy to clipboard operation
canvas-ui copied to clipboard

这项目还有人维护吗?上次更新两年前,新版本react也不兼容

Open SnowWindSaveYou opened this issue 1 year ago • 2 comments

除了这个以外有什么推荐的react用canvas绘制ui的库吗?

SnowWindSaveYou avatar Jun 23 '24 17:06 SnowWindSaveYou

npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: @canvas-ui/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   peer react@"16.8.6" from @canvas-ui/[email protected]
npm ERR!   packages/react
npm ERR!     @canvas-ui/[email protected]
npm ERR!     node_modules/@canvas-ui/react
npm ERR!       workspace packages\react from the root project
npm ERR!       1 more (@canvas-ui/examples)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@">=16.13" from [email protected]
npm ERR! node_modules/react-use-measure
npm ERR!   react-use-measure@"2.0.4" from @canvas-ui/[email protected]
npm ERR!   packages/react
npm ERR!     @canvas-ui/[email protected]
npm ERR!     node_modules/@canvas-ui/react
npm ERR!       workspace packages\react from the root project
npm ERR!       1 more (@canvas-ui/examples)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!

下下来直接npm install也不行,悲。

SnowWindSaveYou avatar Jun 24 '24 04:06 SnowWindSaveYou

你好,还在维护的,但是目前没有兼容新版 React 的计划

具备 React 绑定的 Canvas 绘制库可以试试 Konva

https://github.com/konvajs/react-konva

zhanghaocong avatar Jun 27 '24 15:06 zhanghaocong