Can't start the dev environment on Mac OS

Description

I’ve followed the steps outlined in this doc to the letter, only to encounter a heap of TS issues, such as TS2307: Cannot find module, TS7016: Could not find a declaration file for module, etc.

I have 16 gigs of RAM, so I was trying to run it with yarn dev. After being not able to resolve the errors, I tried with yarn dsv, and ran into bunch of npm error EACCES: permission denied errors.

Manage to resolve that with sudo chown -R $(whoami) ~/.npm (I think this should be added to the doc).

Now it works with yarn dsv, but when I run yarn dev, it just hangs at:

...
@rocket.chat/livechat:dev: 
@rocket.chat/livechat:dev: webpack compiled successfully
@rocket.chat/favicon:dev: cache bypass, force executing d1209d7d37bddf0b
@rocket.chat/favicon:dev: 
@rocket.chat/favicon:dev: [12:35:28 PM] Starting compilation in watch mode...
@rocket.chat/favicon:dev: 
@rocket.chat/favicon:dev: [12:35:29 PM] Found 0 errors. Watching for file changes.

After 2 hours, still the same…

Server Setup Information

  • Version of Rocket.Chat Server: 7.3.0-develop
  • Operating System: macOS Sequoia
  • Deployment Method: source (via git clone)
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: 22.11.0 - arm64
  • MongoDB Version: wiredTiger
  • Proxy: N/A
  • Firewalls involved: N/A

Any additional Information

1. The initial issue I had with yarn dev

@rocket.chat/ui-theming:dev: src/hooks/useThemeMode.ts:1:59 - error TS2307: Cannot find module '@rocket.chat/core-typings' or its corresponding type declarations.
@rocket.chat/ui-theming:dev: 
@rocket.chat/ui-theming:dev: 1 import type { ThemePreference as ThemeMode, Themes } from '@rocket.chat/core-typings';
@rocket.chat/ui-theming:dev:                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/ui-theming:dev: 
@rocket.chat/ui-theming:dev: src/hooks/useThemeMode.ts:3:48 - error TS2307: Cannot find module '@rocket.chat/ui-contexts' or its corresponding type declarations.
@rocket.chat/ui-theming:dev: 
@rocket.chat/ui-theming:dev: 3 import { useEndpoint, useUserPreference } from '@rocket.chat/ui-contexts';
@rocket.chat/ui-theming:dev:                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/ui-theming:dev: 
@rocket.chat/ui-theming:dev: [11:44:54 AM] Found 2 errors. Watching for file changes.
@rocket.chat/ui-theming:dev: 
@rocket.chat/cas-validate:dev: [11:44:54 AM] Found 0 errors. Watching for file changes.
@rocket.chat/cas-validate:dev: 
@rocket.chat/base64:dev: [11:44:54 AM] Found 0 errors. Watching for file changes.
@rocket.chat/base64:dev: 
@rocket.chat/omnichannel-services:dev: src/livechatSystemMessages.ts:1:68 - error TS2307: Cannot find module '@rocket.chat/core-typings' or its corresponding type declarations.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 1 import type { IOmnichannelSystemMessage, MessageTypesValues } from '@rocket.chat/core-typings';
@rocket.chat/omnichannel-services:dev:                                                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/livechatSystemMessages.ts:105:14 - error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ agent: () => string; department: () => string; queue: () => string; autoTransferUnansweredChatsToAgent: () => string; autoTransferUnansweredChatsToQueue: () => string; }'.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 105    transfer: transferTypes[message.transferData.scope](),
@rocket.chat/omnichannel-services:dev:                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/livechatSystemMessages.ts:133:16 - error TS7053: Element implicitly has an 'any' type because expression of type 'IOmnichannelSystemMessage' can't be used to index type '{ visitor: () => string; user: () => string; }'.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 133    transcript: requestTypes[type](),
@rocket.chat/omnichannel-services:dev:                    ~~~~~~~~~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/OmnichannelTranscript.fixtures.ts:1:41 - error TS2307: Cannot find module '@rocket.chat/core-typings' or its corresponding type declarations.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 1 import type { MessageTypesValues } from '@rocket.chat/core-typings';
@rocket.chat/omnichannel-services:dev:                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/OmnichannelTranscript.spec.ts:1:31 - error TS2307: Cannot find module '@rocket.chat/core-typings' or its corresponding type declarations.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 1 import type { IMessage } from '@rocket.chat/core-typings';
@rocket.chat/omnichannel-services:dev:                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/OmnichannelTranscript.spec.ts:2:24 - error TS2307: Cannot find module '@rocket.chat/logger' or its corresponding type declarations.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 2 import { Logger } from '@rocket.chat/logger';
@rocket.chat/omnichannel-services:dev:                          ~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/OmnichannelTranscript.ts:22:8 - error TS2307: Cannot find module '@rocket.chat/core-typings' or its corresponding type declarations.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 22 } from '@rocket.chat/core-typings';
@rocket.chat/omnichannel-services:dev:           ~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/OmnichannelTranscript.ts:23:76 - error TS2307: Cannot find module '@rocket.chat/core-typings' or its corresponding type declarations.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 23 import { isQuoteAttachment, isFileAttachment, isFileImageAttachment } from '@rocket.chat/core-typings';
@rocket.chat/omnichannel-services:dev:                                                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/OmnichannelTranscript.ts:24:29 - error TS2307: Cannot find module '@rocket.chat/logger' or its corresponding type declarations.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 24 import type { Logger } from '@rocket.chat/logger';
@rocket.chat/omnichannel-services:dev:                                ~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/OmnichannelTranscript.ts:25:23 - error TS7016: Could not find a declaration file for module '@rocket.chat/message-parser'. '/Users/zolbayar/workspace/mobex/Rocket.Chat/packages/message-parser/messageParser.js' implicitly has an 'any' type.
@rocket.chat/omnichannel-services:dev:   Try `npm i --save-dev @types/rocket.chat__message-parser` if it exists or add a new declaration (.d.ts) file containing `declare module '@rocket.chat/message-parser';`
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 25 import { parse } from '@rocket.chat/message-parser';
@rocket.chat/omnichannel-services:dev:                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/OmnichannelTranscript.ts:26:27 - error TS7016: Could not find a declaration file for module '@rocket.chat/message-parser'. '/Users/zolbayar/workspace/mobex/Rocket.Chat/packages/message-parser/messageParser.js' implicitly has an 'any' type.
@rocket.chat/omnichannel-services:dev:   Try `npm i --save-dev @types/rocket.chat__message-parser` if it exists or add a new declaration (.d.ts) file containing `declare module '@rocket.chat/message-parser';`
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 26 import type { Root } from '@rocket.chat/message-parser';
@rocket.chat/omnichannel-services:dev:                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/OmnichannelTranscript.ts:28:27 - error TS2307: Cannot find module '@rocket.chat/pdf-worker' or its corresponding type declarations.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 28 import { PdfWorker } from '@rocket.chat/pdf-worker';
@rocket.chat/omnichannel-services:dev:                              ~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/OmnichannelTranscript.ts:29:72 - error TS2307: Cannot find module '@rocket.chat/tools' or its corresponding type declarations.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 29 import { guessTimezone, guessTimezoneFromOffset, streamToBuffer } from '@rocket.chat/tools';
@rocket.chat/omnichannel-services:dev:                                                                           ~~~~~~~~~~~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/OmnichannelTranscript.ts:286:36 - error TS7006: Parameter 'v' implicitly has an 'any' type.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 286     let file = message.files?.map((v) => ({ _id: v._id, name: v.name })).find((file) => file.name === attachment.title);
@rocket.chat/omnichannel-services:dev:                                        ~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/OmnichannelTranscript.ts:286:80 - error TS7006: Parameter 'file' implicitly has an 'any' type.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 286     let file = message.files?.map((v) => ({ _id: v._id, name: v.name })).find((file) => file.name === attachment.title);
@rocket.chat/omnichannel-services:dev:                                                                                    ~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/OmnichannelTranscript.ts:335:57 - error TS7006: Parameter 'attachment' implicitly has an 'any' type.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 335    const msg = message.msg || message.attachments.find((attachment) => attachment.description)?.description || '';
@rocket.chat/omnichannel-services:dev:                                                             ~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/OmnichannelTranscript.ts:337:22 - error TS2345: Argument of type '{ _id: any; msg: any; u: any; files: ({ name: any; buffer: null; extension?: undefined; } | { name: any; buffer: Buffer<ArrayBufferLike>; extension: any; })[]; quotes: Quote[]; ts: any; md: any; }' is not assignable to parameter of type 'MessageData'.
@rocket.chat/omnichannel-services:dev:   Type '{ _id: any; msg: any; u: any; files: ({ name: any; buffer: null; extension?: undefined; } | { name: any; buffer: Buffer<ArrayBufferLike>; extension: any; })[]; quotes: Quote[]; ts: any; md: any; }' is missing the following properties from type 'Pick<IOmnichannelSystemMessage, "md" | "comment" | "requestData" | "_id" | "msg" | "u" | "ts" | "t" | "navigation" | "transferData" | "webRtcCallEndTs" | "slaData" | "priorityData">': comment, requestData, t, navigation, and 4 more.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 337    messagesData.push({
@rocket.chat/omnichannel-services:dev:                          ~
@rocket.chat/omnichannel-services:dev: 338     _id: message._id,
@rocket.chat/omnichannel-services:dev:     ~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: ... 
@rocket.chat/omnichannel-services:dev: 344     md: message.md,
@rocket.chat/omnichannel-services:dev:     ~~~~~~~~~~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: 345    });
@rocket.chat/omnichannel-services:dev:     ~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: src/QueueWorker.ts:3:29 - error TS2307: Cannot find module '@rocket.chat/logger' or its corresponding type declarations.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: 3 import type { Logger } from '@rocket.chat/logger';
@rocket.chat/omnichannel-services:dev:                               ~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/omnichannel-services:dev: [11:44:54 AM] Found 18 errors. Watching for file changes.
@rocket.chat/omnichannel-services:dev: 
@rocket.chat/ui-avatar:dev: src/components/RoomAvatar.tsx:1:35 - error TS2307: Cannot find module '@rocket.chat/ui-contexts' or its corresponding type declarations.
@rocket.chat/ui-avatar:dev: 
@rocket.chat/ui-avatar:dev: 1 import { useRoomAvatarPath } from '@rocket.chat/ui-contexts';
@rocket.chat/ui-avatar:dev:                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/ui-avatar:dev: 
@rocket.chat/ui-avatar:dev: src/components/UserAvatar.tsx:1:35 - error TS2307: Cannot find module '@rocket.chat/ui-contexts' or its corresponding type declarations.
@rocket.chat/ui-avatar:dev: 
@rocket.chat/ui-avatar:dev: 1 import { useUserAvatarPath } from '@rocket.chat/ui-contexts';
@rocket.chat/ui-avatar:dev:                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/ui-avatar:dev: 
@rocket.chat/ui-avatar:dev: [11:44:54 AM] Found 2 errors. Watching for file changes.
@rocket.chat/ui-avatar:dev: 
@rocket.chat/instance-status:dev: src/index.ts:1:38 - error TS2307: Cannot find module '@rocket.chat/core-typings' or its corresponding type declarations.
@rocket.chat/instance-status:dev: 
@rocket.chat/instance-status:dev: 1 import type { IInstanceStatus } from '@rocket.chat/core-typings';
@rocket.chat/instance-status:dev:                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/instance-status:dev: 
@rocket.chat/instance-status:dev: src/index.ts:35:10 - error TS7006: Parameter 'result' implicitly has an 'any' type.
@rocket.chat/instance-status:dev: 
@rocket.chat/instance-status:dev: 35   .then((result) =>
@rocket.chat/instance-status:dev:             ~~~~~~
@rocket.chat/instance-status:dev: 
@rocket.chat/instance-status:dev: src/index.ts:36:17 - error TS7006: Parameter 'index' implicitly has an 'any' type.
@rocket.chat/instance-status:dev: 
@rocket.chat/instance-status:dev: 36    result.some((index) => {
@rocket.chat/instance-status:dev:                    ~~~~~
@rocket.chat/instance-status:dev: 
@rocket.chat/instance-status:dev: src/index.ts:47:10 - error TS7006: Parameter 'created' implicitly has an 'any' type.
@rocket.chat/instance-status:dev: 
@rocket.chat/instance-status:dev: 47   .then((created) => {
@rocket.chat/instance-status:dev:             ~~~~~~~
@rocket.chat/instance-status:dev: 
@rocket.chat/instance-status:dev: [11:44:55 AM] Found 4 errors. Watching for file changes.
@rocket.chat/instance-status:dev: 
@rocket.chat/gazzodown:dev: src/blocks/HeadingBlock.tsx:1:37 - error TS7016: Could not find a declaration file for module '@rocket.chat/message-parser'. '/Users/zolbayar/workspace/mobex/Rocket.Chat/packages/message-parser/messageParser.js' implicitly has an 'any' type.
@rocket.chat/gazzodown:dev:   Try `npm i --save-dev @types/rocket.chat__message-parser` if it exists or add a new declaration (.d.ts) file containing `declare module '@rocket.chat/message-parser';`
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: 1 import type * as MessageParser from '@rocket.chat/message-parser';
@rocket.chat/gazzodown:dev:                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: src/blocks/OrderedListBlock.tsx:1:37 - error TS7016: Could not find a declaration file for module '@rocket.chat/message-parser'. '/Users/zolbayar/workspace/mobex/Rocket.Chat/packages/message-parser/messageParser.js' implicitly has an 'any' type.
@rocket.chat/gazzodown:dev:   Try `npm i --save-dev @types/rocket.chat__message-parser` if it exists or add a new declaration (.d.ts) file containing `declare module '@rocket.chat/message-parser';`
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: 1 import type * as MessageParser from '@rocket.chat/message-parser';
@rocket.chat/gazzodown:dev:                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: src/blocks/ParagraphBlock.tsx:1:37 - error TS7016: Could not find a declaration file for module '@rocket.chat/message-parser'. '/Users/zolbayar/workspace/mobex/Rocket.Chat/packages/message-parser/messageParser.js' implicitly has an 'any' type.
@rocket.chat/gazzodown:dev:   Try `npm i --save-dev @types/rocket.chat__message-parser` if it exists or add a new declaration (.d.ts) file containing `declare module '@rocket.chat/message-parser';`
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: 1 import type * as MessageParser from '@rocket.chat/message-parser';
@rocket.chat/gazzodown:dev:                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: src/blocks/QuoteBlock.tsx:1:37 - error TS7016: Could not find a declaration file for module '@rocket.chat/message-parser'. '/Users/zolbayar/workspace/mobex/Rocket.Chat/packages/message-parser/messageParser.js' implicitly has an 'any' type.
@rocket.chat/gazzodown:dev:   Try `npm i --save-dev @types/rocket.chat__message-parser` if it exists or add a new declaration (.d.ts) file containing `declare module '@rocket.chat/message-parser';`
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: 1 import type * as MessageParser from '@rocket.chat/message-parser';
@rocket.chat/gazzodown:dev:                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: src/blocks/TaskListBlock.tsx:2:37 - error TS7016: Could not find a declaration file for module '@rocket.chat/message-parser'. '/Users/zolbayar/workspace/mobex/Rocket.Chat/packages/message-parser/messageParser.js' implicitly has an 'any' type.
@rocket.chat/gazzodown:dev:   Try `npm i --save-dev @types/rocket.chat__message-parser` if it exists or add a new declaration (.d.ts) file containing `declare module '@rocket.chat/message-parser';`
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: 2 import type * as MessageParser from '@rocket.chat/message-parser';
@rocket.chat/gazzodown:dev:                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: src/blocks/UnorderedListBlock.tsx:1:37 - error TS7016: Could not find a declaration file for module '@rocket.chat/message-parser'. '/Users/zolbayar/workspace/mobex/Rocket.Chat/packages/message-parser/messageParser.js' implicitly has an 'any' type.
@rocket.chat/gazzodown:dev:   Try `npm i --save-dev @types/rocket.chat__message-parser` if it exists or add a new declaration (.d.ts) file containing `declare module '@rocket.chat/message-parser';`
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: 1 import type * as MessageParser from '@rocket.chat/message-parser';
@rocket.chat/gazzodown:dev:                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: src/code/CodeBlock.tsx:1:37 - error TS7016: Could not find a declaration file for module '@rocket.chat/message-parser'. '/Users/zolbayar/workspace/mobex/Rocket.Chat/packages/message-parser/messageParser.js' implicitly has an 'any' type.
@rocket.chat/gazzodown:dev:   Try `npm i --save-dev @types/rocket.chat__message-parser` if it exists or add a new declaration (.d.ts) file containing `declare module '@rocket.chat/message-parser';`
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: 1 import type * as MessageParser from '@rocket.chat/message-parser';
@rocket.chat/gazzodown:dev:                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: src/code/PreviewCodeBlock.tsx:1:37 - error TS7016: Could not find a declaration file for module '@rocket.chat/message-parser'. '/Users/zolbayar/workspace/mobex/Rocket.Chat/packages/message-parser/messageParser.js' implicitly has an 'any' type.
@rocket.chat/gazzodown:dev:   Try `npm i --save-dev @types/rocket.chat__message-parser` if it exists or add a new declaration (.d.ts) file containing `declare module '@rocket.chat/message-parser';`
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: 1 import type * as MessageParser from '@rocket.chat/message-parser';
@rocket.chat/gazzodown:dev:                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: src/elements/BoldSpan.tsx:1:37 - error TS7016: Could not find a declaration file for module '@rocket.chat/message-parser'. '/Users/zolbayar/workspace/mobex/Rocket.Chat/packages/message-parser/messageParser.js' implicitly has an 'any' type.
@rocket.chat/gazzodown:dev:   Try `npm i --save-dev @types/rocket.chat__message-parser` if it exists or add a new declaration (.d.ts) file containing `declare module '@rocket.chat/message-parser';`
@rocket.chat/gazzodown:dev: 
@rocket.chat/gazzodown:dev: 1 import type * as MessageParser from '@rocket.chat/message-parser';

2. The issue I had with yarn dsv

@rocket.chat/meteor:dsv: => Errors prevented startup:                  
@rocket.chat/meteor:dsv:    
@rocket.chat/meteor:dsv:    While building package kadira:flow-router:
@rocket.chat/meteor:dsv:    error: couldn't install npm packages from npm-shrinkwrap: Command failed:
@rocket.chat/meteor:dsv:    /Users/zolbayar/.meteor/packages/meteor-tool/.3.1.0.1epstf1iqr3++os.osx.arm64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.arm64/dev_bundle/bin/npm install
@rocket.chat/meteor:dsv:    npm error code EEXIST
@rocket.chat/meteor:dsv:    npm error syscall rename
@rocket.chat/meteor:dsv:    npm error path /Users/zolbayar/.npm/_cacache/tmp/d0e29e90
@rocket.chat/meteor:dsv:    npm error dest /Users/zolbayar/.npm/_cacache/content-v2/sha512/0c/1c/3d22159f7af476cc25701195114ee40db1e0afbbf43d7f9660a8c08ad1187ad5b0dae2eca33c03b2f5be79c8a88f4f9f73667fbbb982b1996c2c82e227c2
@rocket.chat/meteor:dsv:    npm error errno -13
@rocket.chat/meteor:dsv:    npm error EACCES: permission denied, rename '/Users/zolbayar/.npm/_cacache/tmp/d0e29e90' ->
@rocket.chat/meteor:dsv:    '/Users/zolbayar/.npm/_cacache/content-v2/sha512/0c/1c/3d22159f7af476cc25701195114ee40db1e0afbbf43d7f9660a8c08ad1187ad5b0dae2eca33c03b2f5be79c8a88f4f9f73667fbbb982b1996c2c82e227c2'
@rocket.chat/meteor:dsv:    npm error File exists: /Users/zolbayar/.npm/_cacache/content-v2/sha512/0c/1c/3d22159f7af476cc25701195114ee40db1e0afbbf43d7f9660a8c08ad1187ad5b0dae2eca33c03b2f5be79c8a88f4f9f73667fbbb982b1996c2c82e227c2
@rocket.chat/meteor:dsv:    npm error Remove the existing file and try again, or run npm
@rocket.chat/meteor:dsv:    npm error with --force to overwrite files recklessly.
@rocket.chat/meteor:dsv:    npm error A complete log of this run can be found in: /Users/zolbayar/.npm/_logs/2025-01-12T04_18_05_893Z-debug-0.log
@rocket.chat/meteor:dsv:    npm error code EEXIST
@rocket.chat/meteor:dsv:    npm error syscall rename
@rocket.chat/meteor:dsv:    npm error path /Users/zolbayar/.npm/_cacache/tmp/d0e29e90
@rocket.chat/meteor:dsv:    npm error dest /Users/zolbayar/.npm/_cacache/content-v2/sha512/0c/1c/3d22159f7af476cc25701195114ee40db1e0afbbf43d7f9660a8c08ad1187ad5b0dae2eca33c03b2f5be79c8a88f4f9f73667fbbb982b1996c2c82e227c2
@rocket.chat/meteor:dsv:    npm error errno -13
@rocket.chat/meteor:dsv:    npm error EACCES: permission denied, rename '/Users/zolbayar/.npm/_cacache/tmp/d0e29e90' ->
@rocket.chat/meteor:dsv:    '/Users/zolbayar/.npm/_cacache/content-v2/sha512/0c/1c/3d22159f7af476cc25701195114ee40db1e0afbbf43d7f9660a8c08ad1187ad5b0dae2eca33c03b2f5be79c8a88f4f9f73667fbbb982b1996c2c82e227c2'
@rocket.chat/meteor:dsv:    npm error File exists: /Users/zolbayar/.npm/_cacache/content-v2/sha512/0c/1c/3d22159f7af476cc25701195114ee40db1e0afbbf43d7f9660a8c08ad1187ad5b0dae2eca33c03b2f5be79c8a88f4f9f73667fbbb982b1996c2c82e227c2
@rocket.chat/meteor:dsv:    npm error Remove the existing file and try again, or run npm
@rocket.chat/meteor:dsv:    npm error with --force to overwrite files recklessly.
@rocket.chat/meteor:dsv:    npm error A complete log of this run can be found in: /Users/zolbayar/.npm/_logs/2025-01-12T04_18_05_893Z-debug-0.log

3. What I’m facing after resolving the above issue

@rocket.chat/web-ui-registration:dev: [12:35:03 PM] Found 0 errors. Watching for file changes.
@rocket.chat/web-ui-registration:dev: 
@rocket.chat/livechat:dev: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
@rocket.chat/livechat:dev: This can impact web performance.
@rocket.chat/livechat:dev: Assets: 
@rocket.chat/livechat:dev:   44110.chunk.c7ee4.js (1.02 MiB)
@rocket.chat/livechat:dev:   3889.chunk.be86c.js (648 KiB)
@rocket.chat/livechat:dev:   9263.chunk.4e3ef.js (260 KiB)
@rocket.chat/livechat:dev:   48624.chunk.74889.js (310 KiB)
@rocket.chat/livechat:dev:   79094.chunk.967c3.js (1.25 MiB)
@rocket.chat/livechat:dev:   93012.chunk.fffa9.js (982 KiB)
@rocket.chat/livechat:dev: 
@rocket.chat/livechat:dev: webpack compiled with 1 warning
@rocket.chat/livechat:dev: 
@rocket.chat/livechat:dev: webpack compiled successfully
@rocket.chat/favicon:dev: cache bypass, force executing d1209d7d37bddf0b
@rocket.chat/favicon:dev: 
@rocket.chat/favicon:dev: [12:35:28 PM] Starting compilation in watch mode...
@rocket.chat/favicon:dev: 
@rocket.chat/favicon:dev: [12:35:29 PM] Found 0 errors. Watching for file changes.
@rocket.chat/favicon:dev: 

Answered here.

https://open.rocket.chat/channel/support?msg=pgNsP4JWnNR4cSKtm

Read this too.

1 Like

Thanks!

Use yarn dsv instead of yarn dev