Skip to content

fix: corepack manager use pnpm failed #5369

fix: corepack manager use pnpm failed

fix: corepack manager use pnpm failed #5369

Triggered via pull request February 5, 2025 09:20
Status Failure
Total duration 1m 18s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 11 warnings
build
/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:22373 throw new UsageError(`This project is configured to use ${result.spec.name} because ${result.target} has a "packageManager" field`); ^ UsageError: This project is configured to use yarn because /home/runner/work/nutui-react/nutui-react/package.json has a "packageManager" field at Engine.findProjectSpec (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:22373:21) at async Engine.executePackageManagerRequest (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:22404:24) at async Object.runMain (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:23096:5) { clipanion: { type: 'usage' } } Node.js v20.18.2
test
/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:22373 throw new UsageError(`This project is configured to use ${result.spec.name} because ${result.target} has a "packageManager" field`); ^ UsageError: This project is configured to use yarn because /home/runner/work/nutui-react/nutui-react/package.json has a "packageManager" field at Engine.findProjectSpec (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:22373:21) at async Engine.executePackageManagerRequest (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:22404:24) at async Object.runMain (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:23096:5) { clipanion: { type: 'usage' } } Node.js v20.18.2
test
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
lint: src/packages/animatingnumbers/countup.taro.tsx#L88
React Hook useCallback has a missing dependency: 'duration'. Either include it or remove the dependency array
lint: src/packages/avatar/avatar.taro.tsx#L122
React Hook useEffect has a missing dependency: 'groupMax'. Either include it or remove the dependency array
lint: src/packages/avatarcropper/avatarcropper.taro.tsx#L176
React Hook useEffect has a missing dependency: 'canvasAll'. Either include it or remove the dependency array. You can also do a functional update 'setCanvasAll(c => ...)' if you only need 'canvasAll' in the 'setCanvasAll' call
lint: src/packages/avatarcropper/avatarcropper.taro.tsx#L188
React Hook useMemo has a missing dependency: 'shape'. Either include it or remove the dependency array
lint: src/packages/avatarcropper/avatarcropper.taro.tsx#L270
React Hook useCallback has missing dependencies: 'pixelRatio' and 'space'. Either include them or remove the dependency array
lint: src/packages/avatarcropper/avatarcropper.taro.tsx#L287
React Hook useCallback has missing dependencies: 'canvasAll.canvasId', 'state.displayHeight', and 'state.displayWidth'. Either include them or remove the dependency array
lint: src/packages/avatarcropper/avatarcropper.taro.tsx#L344
React Hook useCallback has missing dependencies: 'alipayDraw', 'canvasAll', 'showAlipayCanvas2D', 'space', 'state', and 'webDraw'. Either include them or remove the dependency array
lint: src/packages/avatarcropper/avatarcropper.tsx#L126
React Hook useMemo has a missing dependency: 'shape'. Either include it or remove the dependency array
lint: src/packages/badge/badge.taro.tsx#L84
React Hook useEffect has a missing dependency: 'getPositionStyle'. Either include it or remove the dependency array
lint: src/packages/barrage/barrage.taro.tsx#L104
React Hook useEffect has a missing dependency: 'run'. Either include it or remove the dependency array