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

CLI doesn't work with node v22 #2790

Open
smallbraingames opened this issue May 3, 2024 · 0 comments
Open

CLI doesn't work with node v22 #2790

smallbraingames opened this issue May 3, 2024 · 0 comments

Comments

@smallbraingames
Copy link
Contributor

Hello MUD friendos,

Cli doesn't work with node v22. Pretty sure its this because the error goes away if I switch back to node v 21

Specifically on mud build I get this error

SyntaxError: Unexpected identifier 'assert'
    at compileSourceTextModule (node:internal/modules/esm/utils:337:16)
    at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:166:18)
    at callTranslator (node:internal/modules/esm/loader:416:14)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:422:30)
    at async link (node:internal/modules/esm/module_job:88:21)
    ```
    
And I think it is related to the use of `assert` and them removing support for it (see here: https://nodejs.org/en/blog/release/v22.0.0)
  
Not an urgent annoyance, just an annoyance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant