源码升级编译总是报错,多次执行 git reset --hard HEAD rm -rf node_modules yarn clean ,重新升级一直过不去

packages/core/test/src/client/index.tsx(20,5): error TS2769: No overload matches this call.
Overload 1 of 2, ‘(ui: ReactNode, options: RenderOptions<typeof import(“/opt/xx/node_modules/@testing-library/dom/types/queries”), HTMLElement, HTMLElement>): RenderResult<…>’, gave the following error.
Type ‘({ children }: { children: ReactNode; }) => ReactNode’ is not assignable to type ‘JSXElementConstructor<{ children: ReactNode; }>’.
Type ‘({ children }: { children: ReactNode; }) => ReactNode’ is not assignable to type ‘(props: { children: ReactNode; }) => ReactElement<any, any>’.
Type ‘ReactNode’ is not assignable to type ‘ReactElement<any, any>’.
Type ‘string’ is not assignable to type ‘ReactElement<any, any>’.
Overload 2 of 2, ‘(ui: ReactNode, options?: Omit<RenderOptions<typeof import(“/opt/xx/node_modules/@testing-library/dom/types/queries”), HTMLElement, HTMLElement>, “queries”>): RenderResult<…>’, gave the following error.
Type ‘({ children }: { children: ReactNode; }) => ReactNode’ is not assignable to type ‘JSXElementConstructor<{ children: ReactNode; }>’.
TypeScript: 1 semantic error
TypeScript: emit succeeded (with errors)
/opt/xx/node_modules/gulp-typescript/release/output.js:131
this.streamFull.emit(‘error’, new Error(“TypeScript: Compilation failed”));
^

Error: TypeScript: Compilation failed
at Output.mightFinish (/opt/xx/node_modules/gulp-typescript/release/output.js:131:43)
at /opt/xx/node_modules/gulp-typescript/release/output.js:66:22
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted ‘error’ event on CompileStream instance at:
at /opt/xx/node_modules/gulp-typescript/release/output.js:117:29
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v18.20.4
/opt/xx/node_modules/execa/lib/error.js:60
error = new Error(message);
^

Error: Command failed with exit code 1: nocobase-build
at makeError (/opt/xx/node_modules/execa/lib/error.js:60:11)
at handlePromise (/opt/xx/node_modules/execa/index.js:118:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Command. (/opt/xx/packages/core/cli/src/commands/build.js:40:7) {
shortMessage: 'Command failed with exit code 1: nocobase-build ',
command: 'nocobase-build ',
escapedCommand: ‘nocobase-build “” “” “” “”’,
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: undefined,
stderr: undefined,
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}

Node.js v18.20.4
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.