Closed meaz closed 1 month ago
Nevermind, it works fine nodejs 21
Sorry for the late response. Yes this is the issue. Node >=20 works with Typescript.
Sorry for the late response. Yes this is the issue. Node >=20 works with Typescript.
So it means that https://github.com/ether/etherpad-lite?tab=readme-ov-file#requirements should be updated ?
Sorry to bother you @SamTV12345 but @meaz says it works after switching from node 20 to 21, but you said that "Node >=20 works with Typescript.". Does it mean that node 21 is required ?
Sorry to bother you @SamTV12345 but @meaz says it works after switching from node 20 to 21, but you said that "Node >=20 works with Typescript.". Does it mean that node 21 is required ?
I heard different things. Some said it worked with NodeJS 18, some with 20. But NodeJS 21 seems to be always working.
Thx for the feedback, on ubuntu 20.04 with node v20.5.1 & npm 10.5.0 i get the same error reported in this issue. That's why i was wondering if requirements should be updated in readme.
We need to clarify which node version is needed to run Etherpad.
README and package.json says v18 and based on https://endoflife.date/nodejs we could support v18 for at least this year.
v18 seems to work without modification, but for v20.5.1 the following works:
diff --git a/src/package.json b/src/package.json
index d69948a6..8e4d18c1 100644
--- a/src/package.json
+++ b/src/package.json
@@ -123,8 +123,8 @@
"lint": "eslint .",
"test": "mocha --import=tsx --timeout 120000 --recursive tests/backend/specs/**.ts ../node_modules/ep_*/static/tests/backend/specs/**",
"test-container": "mocha --import=tsx --timeout 5000 tests/container/specs/api",
- "dev": "node --import tsx node/server.ts",
- "prod": "node --import tsx node/server.ts",
+ "dev": "node --require tsx/cjs node/server.ts",
+ "prod": "node --require tsx/cjs node/server.ts",
"ts-check": "tsc --noEmit",
"ts-check:watch": "tsc --noEmit --watch",
"test-ui": "npx playwright test tests/frontend-new/specs",
makes it run on v20.5.1
@SamTV12345 Will this change in the near future? If not, I'd add different invocations in bin/run.sh. I think most users either call those scripts or if they have unit files etc. they are able to adapt the commands themselves.
@SamTV12345
Will this change in the near future? If not, I'd add different invocations in bin/run.sh. I think most users either call those scripts or if they have unit files etc. they are able to adapt the commands themselves.
I'd say it won't change in the near future. So feel free to adapt the commands for <Node21
Describe the bug When running etherpad, I get
Unknown file extension ".ts" for /path/to/etherpad-lite/src/node/server.ts
To Reproduce Steps to reproduce the behavior:
bin/run.sh
Error I get
Server (please complete the following information):
node --version
): 20.5.1 (but also tested with 19)npm --version
): 9.8.0 (but also tested with 10.5.0)