/home/container/node_modules/discord-backup/lib/index.js:5
const node_fetch_1 = require("node-fetch");
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/container/node_modules/node-fetch/src/index.js from /home/container/node_modules/discord-backup/lib/index.js not supported.
Instead change the require of /home/container/node_modules/node-fetch/src/index.js in /home/container/node_modules/discord-backup/lib/index.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/home/container/node_modules/discord-backup/lib/index.js:5:22)
at Object. (/home/container/Modules/ServerBackups/ServerBackupManager.js:1:16)
at Object. (/home/container/Commands/TeamCommands/ExampleCommand.js:8:31)
at Object. (/home/container/Utils/Manager/CommandManager.js:3:28)
at Object. (/home/container/Utils/Manager/SlashCommandManager.js:2:26)
at Object. (/home/container/Events/Discord/ShardReadyEvent.js:3:32)
at Object. (/home/container/Utils/Handler/EventHandler.js:13:25)
at Object. (/home/container/Utils/Redis.js:4:24)
at Object. (/home/container/index.js:3:17) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v18.16.0
/home/container/node_modules/discord-backup/lib/index.js:5 const node_fetch_1 = require("node-fetch"); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /home/container/node_modules/node-fetch/src/index.js from /home/container/node_modules/discord-backup/lib/index.js not supported. Instead change the require of /home/container/node_modules/node-fetch/src/index.js in /home/container/node_modules/discord-backup/lib/index.js to a dynamic import() which is available in all CommonJS modules. at Object. (/home/container/node_modules/discord-backup/lib/index.js:5:22)
at Object. (/home/container/Modules/ServerBackups/ServerBackupManager.js:1:16)
at Object. (/home/container/Commands/TeamCommands/ExampleCommand.js:8:31)
at Object. (/home/container/Utils/Manager/CommandManager.js:3:28)
at Object. (/home/container/Utils/Manager/SlashCommandManager.js:2:26)
at Object. (/home/container/Events/Discord/ShardReadyEvent.js:3:32)
at Object. (/home/container/Utils/Handler/EventHandler.js:13:25)
at Object. (/home/container/Utils/Redis.js:4:24)
at Object. (/home/container/index.js:3:17) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v18.16.0