Lightning plugin on PeerTube

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.9.1
What app is this about: PeerTube

Describe your issue

Hello,

I’m trying to install the Lightning Plugin on Peertube v7.0.0. so I can use Podcasting 2.2 features. However, I always get an error saying the plugin couldn’t be installed. I have other plugins installed successfully and have also tried with no plugins installed.

Share relevant logs or error messages

error[1/4/2025, 7:05:28 AM] Cannot install plugin peertube-plugin-lightning, removing it…

{
“err”: {
“stack”: “Error [ERR_REQUIRE_ESM]: require() of ES Module /home/yunohost.app/peertube/storage/plugins/node_modules/emittery/index.js from /home/yunohost.app/peertube/storage/plugins/node_modules/@getalby/sdk/dist/index.cjs not supported.\nInstead change the require of index.js in /home/yunohost.app/peertube/storage/plugins/node_modules/@getalby/sdk/dist/index.cjs to a dynamic import() which is available in all CommonJS modules.\n at Object. (/home/yunohost.app/peertube/storage/plugins/node_modules/@getalby/sdk/dist/index.cjs:1:7)\n at Object. (/home/yunohost.app/peertube/storage/plugins/node_modules/peertube-plugin-lightning/main.js:11:32)\n at PluginManager.registerPlugin (file:///var/www/peertube/dist/core/lib/plugins/plugin-manager.js:340:25)\n at PluginManager.registerPluginOrTheme (file:///var/www/peertube/dist/core/lib/plugins/plugin-manager.js:311:39)\n at async PluginManager.install (file:///var/www/peertube/dist/core/lib/plugins/plugin-manager.js:241:17)”,
“code”: “ERR_REQUIRE_ESM”,
“message”: “require() of ES Module /home/yunohost.app/peertube/storage/plugins/node_modules/emittery/index.js from /home/yunohost.app/peertube/storage/plugins/node_modules/@getalby/sdk/dist/index.cjs not supported.\nInstead change the require of index.js in /home/yunohost.app/peertube/storage/plugins/node_modules/@getalby/sdk/dist/index.cjs to a dynamic import() which is available in all CommonJS modules.”
}
}