[2023-04-25 09:08:17.781] [error] console - failed to load hook function "/root/etherpad-lite/node_modules/ep_etherpad-lite/node/hooks/express/openapi:expresscreateserver" for plugin "ep_etherpad-lite" part "openapi" hook set "hooks" hook "expresscreateserver": error [err_require_esm]: must use import to load es mod
Ule: /root/etherpad-lite/src/node_modules/rehype/index.js
Require() of es modules is not supported.
Require() of /root/etherpad-lite/src/node_modules/rehype/index.js from /root/etherpad-lite/src/node/utils/importhtml.js is an es module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as es modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /root/etherpad-lite/src/node_modules/rehype/package.json.
At object.module._extensions..js (internal/modules/cjs/loader.js:1080:13)
At module.load (internal/modules/cjs/loader.js:928:32)
At function.module._load (internal/modules/cjs/loader.js:769:14)
At module.require (internal/modules/cjs/loader.js:952:19)
At require (internal/modules/cjs/helpers.js:88:18)
At object.<anonymous> (/root/etherpad-lite/src/node/utils/importhtml.js:22:16)
At module._compile (internal/modules/cjs/loader.js:1063:30)
At object.module._extensions..js (internal/modules/cjs/loader.js:1092:10)
At module.load (internal/modules/cjs/loader.js:928:32)
At function.module._load (internal/modules/cjs/loader.js:769:14)
[2023-04-25 09:08:17.818] [error] console - failed to load hook function "/root/etherpad-lite/node_modules/ep_etherpad-lite/node/hooks/express/importexport:expresscreateserver" for plugin "ep_etherpad-lite" part "importexport" hook set "hooks" hook "expresscreateserver": error [err_require_esm]: must use import to l
Oad es module: /root/etherpad-lite/src/node_modules/rehype/index.js
Require() of es modules is not supported.
Require() of /root/etherpad-lite/src/node_modules/rehype/index.js from /root/etherpad-lite/src/node/utils/importhtml.js is an es module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as es modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /root/etherpad-lite/src/node_modules/rehype/package.json.
At object.module._extensions..js (internal/modules/cjs/loader.js:1080:13)
At module.load (internal/modules/cjs/loader.js:928:32)
At function.module._load (internal/modules/cjs/loader.js:769:14)
At module.require (internal/modules/cjs/loader.js:952:19)
At require (internal/modules/cjs/helpers.js:88:18)
At object.<anonymous> (/root/etherpad-lite/src/node/utils/importhtml.js:22:16)
At module._compile (internal/modules/cjs/loader.js:1063:30)
At object.module._extensions..js (internal/modules/cjs/loader.js:1092:10)
At module.load (internal/modules/cjs/loader.js:928:32)
At function.module._load (internal/modules/cjs/loader.js:769:14)
[2023-04-25 09:08:17.824] [error] console - failed to load hook function "/root/etherpad-lite/node_modules/ep_etherpad-lite/node/hooks/express/apicalls:expresscreateserver" for plugin "ep_etherpad-lite" part "apicalls" hook set "hooks" hook "expresscreateserver": error [err_require_esm]: must use import to load es m
Odule: /root/etherpad-lite/src/node_modules/rehype/index.js
Require() of es modules is not supported.
Require() of /root/etherpad-lite/src/node_modules/rehype/index.js from /root/etherpad-lite/src/node/utils/importhtml.js is an es module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as es modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /root/etherpad-lite/src/node_modules/rehype/package.json.
At object.module._extensions..js (internal/modules/cjs/loader.js:1080:13)
At module.load (internal/modules/cjs/loader.js:928:32)
At function.module._load (internal/modules/cjs/loader.js:769:14)
At module.require (internal/modules/cjs/loader.js:952:19)
At require (internal/modules/cjs/helpers.js:88:18)
At object.<anonymous> (/root/etherpad-lite/src/node/utils/importhtml.js:22:16)
At module._compile (internal/modules/cjs/loader.js:1063:30)
At object.module._extensions..js (internal/modules/cjs/loader.js:1092:10)
At module.load (internal/modules/cjs/loader.js:928:32)
At function.module._load (internal/modules/cjs/loader.js:769:14)