Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rocket.Chat.Electron could not yarn start #2860

Open
2 of 5 tasks
yaoyi601131548 opened this issue Mar 9, 2024 · 3 comments
Open
2 of 5 tasks

Rocket.Chat.Electron could not yarn start #2860

yaoyi601131548 opened this issue Mar 9, 2024 · 3 comments

Comments

@yaoyi601131548
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

Operating System

  • macOS
  • Windows
  • Linux

Operating System Version

macOS 14.2.1

It happens on the web browser too?

No, it just happens on the Desktop app

Rocket.Chat Desktop App Version

3.9.14

Rocket.Chat Server Version

3.9.14

Describe the bug

I can run "yarn start" successfully on Rocket.Chat.Electron 3.9.11, but when I upgrade to Rocket.Chat.Electron 3.9.14 and execute "yarn start," it throws an error.

[!] SyntaxError: Unexpected token 'with'
at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:117:18)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:218:14)
at link (node:internal/modules/esm/module_job:67:21)

How to Reproduce

yarn.
yarn start.

Describe your Expected behavior

No response

Anything else

No response

Are you willing to submit a code contribution?

  • Yes, I am willing to submit a Pull Request!
@RomeoIndiaJulietUniform

Hii @yaoyi601131548 can you please specify which Node version you are using. Can you share the full error log please

@milux
Copy link

milux commented Mar 21, 2024

+1 on Ubuntu 22.04 with node.js via nvm. node --version yields v18.17.1, which is the enabled version.

[!] SyntaxError: Unexpected token 'with'
    at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:119:18)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:468:14)
    at link (node:internal/modules/esm/module_job:68:21)

I don't know what you mean by "full error log" here, this is all information that is spit out by yarn when I try yarn build or yarn start. Other commands might be affected as well.

@milux
Copy link

milux commented Mar 21, 2024

Updated: Fixed by switching to latest node.js LTS (20.11.1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants