I can't run the project locally: yarn run build exited error

Description

I’m trying to run the project locally but I can’t start it. I’m using WSL 2 Ubuntu 22.04.2 on Windows 11, the dependencies install without problems but when I run the command ‘yarn dev’ or ‘yarn dsv’ these errors appear and I can’t start the application.

Server Setup Information

  • Version of Rocket.Chat Server: 6.4.1
  • Operating System: Windows 11 Pro
  • Deployment Method:
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version: 14.21.3
  • MongoDB Version:
  • Proxy:
  • Firewalls involved:

Any additional Information

yarn dev:

@rocket.chat/rest-typings:dev:
@rocket.chat/rest-typings:dev: 10:19:05 AM - Starting compilation in watch mode...
@rocket.chat/rest-typings:dev:
@rocket.chat/livechat:dev: ERROR: command finished with error: command (/home/brunoascenc/Teste/Rocket.Chat/packages/livechat) yarn run dev exited (-1)
@rocket.chat/livechat#dev: command (/home/brunoascenc/Teste/Rocket.Chat/packages/livechat) yarn run dev exited (-1)

 Tasks:    0 successful, 34 total
Cached:    0 cached, 34 total
  Time:    47.237s
Failed:    @rocket.chat/livechat#dev

 ERROR  run failed: command  exited (1)

yarn dsv:

@rocket.chat/pdf-worker:build:     Type '({ lines }: CodeBlockProps) => ReactElement' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
@rocket.chat/pdf-worker:build:       Type 'ReactElement<any, string | JSXElementConstructor<any>>' is not assignable to type 'ReactNode'.
@rocket.chat/pdf-worker:build: ERROR: command finished with error: command (/home/brunoascenc/Teste/Rocket.Chat/ee/packages/pdf-worker) yarn run build exited (2)
@rocket.chat/rest-typings:build: cache miss, executing e619e20c429d21ec
@rocket.chat/ui-contexts:build: cache bypass, force executing d27d122daed8498c
@rocket.chat/core-services:build: cache miss, executing e75ca245edd67503
@rocket.chat/ui-video-conf:build: cache miss, executing f45e401c08039514
@rocket.chat/ui-theming:build: cache miss, executing 358d2c130dec81dc
@rocket.chat/api-client:build: cache miss, executing 54f19bf470c79015
@rocket.chat/mock-providers:build: cache miss, executing 56b7deeb2a23205e
@rocket.chat/presence:build: cache miss, executing 5eeb76fed97656d8
@rocket.chat/ui-client:build: cache miss, executing 45f1e51995ae00b3
@rocket.chat/ddp-client:build: cache miss, executing 55c7dc50623e701f
@rocket.chat/gazzodown:build: cache miss, executing 79fb428dccbe7d30
@rocket.chat/web-ui-registration:build: cache miss, executing b2e760e18ef111cb
@rocket.chat/pdf-worker#build: command (/home/brunoascenc/Teste/Rocket.Chat/ee/packages/pdf-worker) yarn run build exited (2)

 Tasks:    19 successful, 34 total
Cached:    18 cached, 34 total
  Time:    6.439s
Failed:    @rocket.chat/pdf-worker#build

 ERROR  run failed: command  exited (2)

Does anyone know what it could be?

Thanks!