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

node20 support #501

Open
tux93 opened this issue Nov 20, 2023 · 1 comment
Open

node20 support #501

tux93 opened this issue Nov 20, 2023 · 1 comment

Comments

@tux93
Copy link

tux93 commented Nov 20, 2023

Currently it is not possible to build mjolnir with node20:

yarn install v1.22.19
warning ../package.json: No license field
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error matrix-appservice@1.1.0: The engine "node" is incompatible with this module. Expected version ">=14 <=18". Got "20.8.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

This is a problem for me because openSUSE Tumbleweed dropped all node versions < 20 quite a while ago because it caused problems with openSSL 3.1

@tux93
Copy link
Author

tux93 commented Nov 20, 2023

For now I was able to work around this by bumping the version of matrix-appservice-bridge in package.json, that way the build succeeds and mjolnir appears to be running fine.

diff --git a/package.json b/package.json
index 4b24df8..45bdf50 100644
--- a/package.json
+++ b/package.json
@@ -55,7 +55,7 @@
     "humanize-duration-ts": "^2.1.1",
     "js-yaml": "^4.1.0",
     "jsdom": "^16.6.0",
-    "matrix-appservice-bridge": "8.1.2",
+    "matrix-appservice-bridge": "9.0.1",
     "parse-duration": "^1.0.2",
     "pg": "^8.8.0",
     "prom-client": "^14.1.0",

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

No branches or pull requests

1 participant